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

Login page: Password field less wide than User field #4676

Open
olafgrabienski opened this issue Oct 2, 2020 · 10 comments
Open

Login page: Password field less wide than User field #4676

olafgrabienski opened this issue Oct 2, 2020 · 10 comments

Comments

@olafgrabienski
Copy link

Description of the bug

After upgrading various sites to Backdrop 1.17.x, I noticed that the password field on some of the sites with a Basis sub-theme is not as wide as before.

Steps To Reproduce

To reproduce the behavior:

  1. Set the input elements (Username and Password) to a width of 100% (in your sub-theme or via browser dev tools).
  2. Make sure your browser window is more than 992px wide.
  3. Go to user/login.

Actual behavior

The password field is not as wide as the Username field.

Expected behavior

The password field width should match the User field width, as before. Alternatively, inform people with sub-themes how to get the desired behavior.

Screenshots

Before update:

screen-backdrop-login-1-before

After update to 1.17.1:

screen-backdrop-login-2-after

Additional information

I suspect .password-toggle-wrapper { display: inline-block; } from https://github.com/backdrop/backdrop/pull/2129/files#diff-dda5165ae83ca49b90750e9c569f5516R43 being the issue which is quite old but probably came in for the Login page only recently via #3048.

@klonos
Copy link
Member

klonos commented Oct 2, 2020

This is in Basis, right @olafgrabienski ?

@olafgrabienski
Copy link
Author

More or less. It happens to me in a Basis sub-theme where I have set the password input element to a custom width of 100%, and now it isn't 100% wide anymore. In a vanilla Backdrop installation with just Basis as theme it's fine.

@indigoxela
Copy link
Member

I wasn't able to reproduce this on any of my sites (Basis subtheme or not).

@olafgrabienski are you sure that it's a core bug? Otherwise you could close this issue.

@olafgrabienski
Copy link
Author

are you sure that it's a core bug?

Hm, I guess, but certainly not 100%. Have to check it again, will report back.

@olafgrabienski
Copy link
Author

@indigoxela I was able to reproduce the issue on a vanilla Backdrop installation (well, actually on a PR sandbox for issue 4808 which shouldn't have side effects re the issue here).

I've mave made a screenshot and highlighted the important parts there, want to try again?

screen-backdrop-issue-login-inputs-width

@klonos
Copy link
Member

klonos commented Dec 16, 2020

Hmm 🤔 ...I cannot reproduce this on Mac/Chrome: https://pr3448-nb9q6be5myqxi6ij9rc55gbzhvzniov4.tugboat.qa/user/login ...I've tried resizing the browser window, and the width of the two fields persisted to be the same at all times 🤷

What browser/OS are you seeing this in @olafgrabienski ?

@olafgrabienski
Copy link
Author

What browser/OS are you seeing this in?

Same as you: Mac + Chrome ;-) Have you set the inputs (name and password) to a width of 100% in the browser dev tools?

@klonos
Copy link
Member

klonos commented Dec 16, 2020

Have you set the inputs (name and password) to a width of 100% in the browser dev tools?

Why would I do that? ...the moment you change things, you are not testing a "vanilla" installation, so that right there might be the issue.

Are you trying to manually set the width to 100%? ...and if so, then why?

@olafgrabienski
Copy link
Author

Are you trying to manually set the width to 100%? ...and if so, then why?

Yes, I do. It's a design decision which I used on a couple of sites with a Basis sub-theme: Both login inputs cover the whole width of the page, see the "before" screenshot in the issue description. As mentioned there, when both fields where set to 100% width, the password field width used to match the user name field width for a long time.

It might not be a classical bug, probably an edge-case. After upgrading to Backdrop 1.17.x, I found however several of my sites "broken" with strange looking login forms. That's why I suggested: "Alternatively, inform people with sub-themes how to get the desired behavior." That said, actually I don't think that the "breakage", even for sub-themes, is an intended behavior. So, we could also try to fix it. Before, I'd be happy if someone could confirm the issue. Can you try the STR again?

@klonos
Copy link
Member

klonos commented Dec 16, 2020

Yes, I do. It's a design decision which I used on a couple of sites with a Basis sub-theme ...

Sorry, I missed that. I was under the impression that this was happening in a vanilla installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants