Skip to content

Floating labels and validation feedback messages #33405

Answered by mabasic
mabasic asked this question in Q&A
Discussion options

You must be logged in to vote

My bad, it would seem that for floating labels when is-invalid class is applied to the input element, the error should be set in the label, not in .invalid-feedback element.

https://getbootstrap.com/docs/5.2/forms/floating-labels/#example

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mabasic
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