Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ffoodd
Copy link
Member

@ffoodd ffoodd commented May 17, 2021

Fixes #33996, fixes #32636

Floating labels

Since y-padding are overriden for form-select later in the file, I'm simply moving paddings to .form-control, which prevents to override existing x-padding for select.

Firefox

Applying vendor property works fine, I'm simply taking user agent styles into account by subtracting the internal start padding to our own.


Preview: https://deploy-preview-34008--twbs-bootstrap.netlify.app/docs/5.0/forms/floating-labels/#selects

@ffoodd ffoodd requested a review from a team as a code owner May 17, 2021 13:23
@ffoodd ffoodd changed the title fix(forms): x-paddings for select with floating label Fix x-paddings for select with floating label May 17, 2021
@ffoodd ffoodd changed the title Fix x-paddings for select with floating label Fix x-paddings for select (with floating label, and in Firefox) May 17, 2021
Copy link
Member

@mdo mdo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it, thanks!

@XhmikosR XhmikosR merged commit bdde9b5 into main May 25, 2021
@XhmikosR XhmikosR deleted the main-fod-floating-select branch May 25, 2021 05:31
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.

Right padding on floating label select is wrong Floating labels and select positioned with different padding on Firefox

3 participants