Lock: Login design issues on mobile devices

Created on 20 Jan 2020  路  14Comments  路  Source: auth0/lock

Description

By using the Auth0 Universal Login Page hosted by Auth0, I have 1 issue with the design on some android devices and a second issue on all mobile devices (Android & iPhone)
The design issues include 2 things:

  1. The login button is not shown (I thought this was fixed by #1539 but this still exists with me on android devices).
  2. When using additional fields to the signup & Use landscape mode (First Name & Last Name per example) the container is broken.

Tested on (Huawei Nova 3i, Galaxy J7 Prime, iPhone 6S, iPhone 7, iPhone 11)
The first design issue doesn't appear on the iPhones I tested with or on Chrome responsive.

Android Screenshots:

Galaxy J7 Prime
android

Galaxy J7 Prime
android

iPhone Screenshots:

Login with no issue on iPhone 6S
iPhone

Signup with container issue
iPhone 11
iPhone
iPhone 6S
iPhone

Environment

  • Version of this library used: Lock 11.20.3

Most helpful comment

@MarcMagdi 馃 can you try overflow-y: scroll instead - does that fix it for you?

I've just come across this myself when adding lots of social providers to the form, and using this style now allows me to scroll, would be good if you can confirm the same.

All 14 comments

The "login button is not shown" is logged here too:
https://github.com/auth0/lock/issues/1706

@MarcMagdi is the login page that exhibits the second issue (container overflow) available somewhere publicly that I can get to?

@MarcMagdi Thanks for the repo, let me get a look at it this week for you.

The release hasn't been done yet, there's another PR that's potentially coming in for that release, just waiting on status.

@MarcMagdi Could you please verify a fix for me? Find the element with the auth0-lock-content-wrapper class on it and add the overflow-y: hidden style to it and see if that solves your issue?

With this in place, I get what's in the attached screenshot:

Screenshot 2020-02-04 at 10 34 22

@stevehobbsdev This added a new bug that I can't scroll on the form.

@MarcMagdi 馃 can you try overflow-y: scroll instead - does that fix it for you?

I've just come across this myself when adding lots of social providers to the form, and using this style now allows me to scroll, would be good if you can confirm the same.

@stevehobbsdev Looks great now!
But this added a scrollbar also on the web
image

@MarcMagdi Ok, but we're getting closer. Let me raise a PR around this.

@MarcMagdi In what browser are you seeing the scrollbar with overflow-y: scroll? I can't reproduce that.

Ok, I've managed to see this now on Chrome, IE11 and Edge on Windows. It's a bit funky because the scrollbar seems to appear and disappear when you transition out of mobile or desktop view.

Try this:

.auth0-lock-content-wrapper {
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.auth0-lock-content-wrapper::-webkit-scrollbar {
  width: 0;
  height: 0;
}

@stevehobbsdev Looks good on my end!
Also, I'd prefer the scroll bar mentioned on #1800 with the old version as an indicator there is still content.
But for now, looks great.

This will perhaps need some more thought then. Unfortunately at this point we cannot have both.

The overflow style on that element is there to help display the login button correctly at the bottom of the screen. I've identified #1758 as the change which broke the container element, but reversing that still produces scrollbars, so we end up in the same position.

Let me raise the PR and put all the trade-offs in there, perhaps we can come to a solution.

Was this page helpful?
0 / 5 - 0 ratings