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

Floating labels in input group: Border fix #36874

Merged

Conversation

louismaximepiton
Copy link
Member

Fixes #36868

The issue comes from #36759.

Problem explanation

From what I understand, the .form-control/.form-select is shifted of 1px compared to .form-floating (which is not shifted himself). So the content following .form-floating is shifted of 1px compared to .form-floating. As we have the same shift inside and following .form-floating, the following content seems not to be shifted compared to the input.

Solution

Shift the .form-floating himself instead of its children.

@louismaximepiton louismaximepiton requested a review from a team as a code owner August 1, 2022 13:31
@mdo mdo added docs v5 css and removed docs labels Aug 1, 2022
@mdo mdo force-pushed the main-lmp-floating-labels-border-fix branch from 21abc97 to b17789e Compare August 1, 2022 16:00
@mdo mdo merged commit 6c221aa into twbs:main Aug 1, 2022
@louismaximepiton louismaximepiton deleted the main-lmp-floating-labels-border-fix branch September 2, 2022 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

input-group form-floating negative margin in 5.2 vs 5.1
2 participants