-
Notifications
You must be signed in to change notification settings - Fork 48
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
SCSS Floating labels #21
Comments
Apologies for the delay. This is fantastic! It's something that was in my backlog of things to add/change. If you like, feel free to create a pull request completing this. If not, let me know and I'll get it implemented for you! |
https://getbootstrap.com/docs/5.0/forms/floating-labels/#selects |
Here's how compiled CSS looks like: .form-floating .select2-container--bootstrap-5 .select2-selection {
height: calc(3.5rem + 2px);
padding: 1rem 0.75rem;
}
.form-floating .select2-container--bootstrap-5 .select2-selection>.select2-selection__rendered {
margin-top: 0.6rem;
margin-left: 0.25rem;
} |
For multiselect to work properly instead |
with bootstrap 5.2, for me this was not enought. The label remain covered, so I added
Not sure about side-effect with modal.
|
Awesome! I was looking for this <3 |
Hi, In my project I use" floating labels " from bootstrap. Current styles don't support select with it, maybe not necessary :) but I selected select2 and your add-on just so as not to rewrite all the styles for bootstrap on my own. You can add my styles, maybe not quite what you need, but I had enough of these styles.
https://getbootstrap.com/docs/5.0/forms/floating-labels/
The text was updated successfully, but these errors were encountered: