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

v5: Inputs and Selects are slightly misaligned in Floating Forms #32672

Closed
TechOverflow opened this issue Jan 5, 2021 · 5 comments · Fixed by #34161
Closed

v5: Inputs and Selects are slightly misaligned in Floating Forms #32672

TechOverflow opened this issue Jan 5, 2021 · 5 comments · Fixed by #34161

Comments

@TechOverflow
Copy link

There is a slight misalignment, probably due to padding-top. I have not tested in other browsers.

@TechOverflow
Copy link
Author

Temporary fix:

.form-select {
  line-height: 1.25em;
}

@alecpl
Copy link
Contributor

alecpl commented Jan 6, 2021

I confirm this is related to line-height (and maybe appearance). In Chrome the letter "g" in select is cut.

@Shifrin
Copy link

Shifrin commented Mar 7, 2021

Temporary fix:

.form-select {
  line-height: 1.25em;
}

I checked in Chrome by applying this fix, it doesn't work for me. But I can able to fix it by setting padding-bottom: .425rem.

So is it really a line-height issue @alecpl?

@alecpl
Copy link
Contributor

alecpl commented May 31, 2021

.form-floating > .form-select {
  line-height: 1.25rem;
}

works for me. Interestingly setting such a line-height value on an input field does not change anything, but for selects it makes a difference.

@jaxramus
Copy link

yeah this is still happening even on the latest version: https://stackblitz.com/edit/hxnclf?file=index.html

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

Successfully merging a pull request may close this issue.

6 participants