You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a great suggestion! Thanks! We'd be happy to entertain a pull request (PR) to add this functionality. I expect we'd want floating labels to be turned on at the form level via an option to bootstrap_form_for or bootstrap_form_with.
If you decide to work on a PR, please assign this issue to yourself (look for the link in the upper-right area of this page).
I'm a little busy at the moment, but if no one else picks up this issue in the meantime, I'll definitely look into it.
Its 2023, not sure if something changed in the interim since the last comment, but I got floating-labels to work by adding istvanp's method above, with the addition of :
Hi,
Is there an easy or recommended way to generate markup for floating labels? Two examples:
Basically I think it needs:
some extra custom CSS using
:placeholder-shown
generate form
<label>
AFTER the<input>
like this:I think this could be a nice addition to bootstrap_form, either as a section in the README or as actual code/API additions.
Screenshot
The text was updated successfully, but these errors were encountered: