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

[SDK-1373] Added style rules to handle overflow and scroll #1803

Merged
merged 3 commits into from
Feb 17, 2020

Conversation

stevehobbsdev
Copy link
Contributor

@stevehobbsdev stevehobbsdev commented Feb 14, 2020

Changes

This PR adds stye rules to correctly contain the wrapper element whilst still allowing the login button to show at the bottom. This happens because, in order to fix an issue with the login button on mobile views, overflow-x: auto was added to the wrapper element and overflow-x: inherit was added for desktop views. As overflow-y was not also specified, it defaults to visible implicitly (see this Stackoverflow answer). Explicitly specifying overflow-y: scroll here causes the container to behave properly.

The tradeoff is that it requires scrollbars to be hidden, otherwise it looks a bit ugly on Windows.

I identified #1758 as the change that broke the containing element and caused its contents to spill out.

Before

image

After

image

References

Fixes #1800
Fixes #1783

Checklist

This should alleviate some problems when using a lot of social providers
or using a landscape orientation on mobile.
@stevehobbsdev stevehobbsdev added this to the vNext milestone Feb 14, 2020
@stevehobbsdev stevehobbsdev requested a review from a team February 14, 2020 13:23
@stevehobbsdev stevehobbsdev self-assigned this Feb 14, 2020
@stevehobbsdev stevehobbsdev merged commit 496a937 into master Feb 17, 2020
@stevehobbsdev stevehobbsdev deleted the fix/scroll branch February 17, 2020 11:22
jfromaniello pushed a commit to jfromaniello/auth0-lock that referenced this pull request Mar 5, 2020
This should alleviate some problems when using a lot of social providers
or using a landscape orientation on mobile.
davidpatrick pushed a commit to davidpatrick/lock that referenced this pull request Jun 12, 2020
This should alleviate some problems when using a lot of social providers
or using a landscape orientation on mobile.
jfromaniello pushed a commit to jfromaniello/auth0-lock that referenced this pull request Jul 23, 2020
This should alleviate some problems when using a lot of social providers
or using a landscape orientation on mobile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broken scrolling (started with v11.19.0) Login design issues on mobile devices
2 participants