Skip to content

Clarify usage of .form-label with .form-floating #39971

Answered by julien-deramond
imagoiq asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @imagoiq

"Form labels now require .form-label.".
...
So now I'm totally confused. Should I report a bug for the issue above? Is the doc page missing the .form-label? Is .form-floating label compatible with .form-label?

.form-label are used for regular form controls (e.g. https://getbootstrap.com/docs/5.3/forms/form-control/). Floating labels are particular and don't require any extra .form-label class since it's handled directly by .form-floating put on the surrounding <div>.

I also encountered a bug with Readonly plaintext where if you change the $input-bg variable to something different from the body background, the label background is visible.

I'm not entirely sure whether th…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@imagoiq
Comment options

@julien-deramond
Comment options

Answer selected by imagoiq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants