Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ESD-6221] Remove CSS variable from header height calculation #1867

Merged
merged 2 commits into from
May 18, 2020

Conversation

stevehobbsdev
Copy link
Contributor

@stevehobbsdev stevehobbsdev commented May 15, 2020

Changes

This change effectively reverts #1859 and reimplements the header height calculation in a way that doesn't use a CSS variable (this was breaking in IE11). All of this is designed to handle the case where the title is too large to be contained on one line.

To do this, this PR implements the ability for Lock to handle its own emitted events, and handles the signin ready and signup ready events to responds to tab changes and recalculate the header size.

IE11 render

image

References

This was raised via an internal service desk ticket, from customers who were seeing header size issues in IE11 thanks to the lack of CSS variable support.

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

  • This change adds unit test coverage
  • This change adds integration test coverage
  • This change has been tested on the latest version of the platform/language

Checklist

@stevehobbsdev stevehobbsdev added this to the vNext milestone May 15, 2020
@stevehobbsdev stevehobbsdev requested a review from a team May 15, 2020 12:48
@stevehobbsdev stevehobbsdev changed the title [ESD-6221] Header height calculation rewrite [ESD-6221] Remove CSS variable from header height calculation May 15, 2020
@stevehobbsdev stevehobbsdev merged commit 3c280ff into master May 18, 2020
@stevehobbsdev stevehobbsdev deleted the fix/ie11-header branch May 18, 2020 16:04
davidpatrick pushed a commit to davidpatrick/lock that referenced this pull request Jun 12, 2020
…1867)

* Fixed header height when tabs change

* Removed unused import for store
jfromaniello pushed a commit to jfromaniello/auth0-lock that referenced this pull request Jul 23, 2020
…1867)

* Fixed header height when tabs change

* Removed unused import for store
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants