Skip to content
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

floating label not looking good when multiple select enabled with size #32660

Closed
vnekatesharao opened this issue Jan 3, 2021 · 1 comment · Fixed by #32744
Closed

floating label not looking good when multiple select enabled with size #32660

vnekatesharao opened this issue Jan 3, 2021 · 1 comment · Fixed by #32744

Comments

@vnekatesharao
Copy link

<div class="form-floating" width="50%">
  <select class="form-control" id="floatingSelect" aria-label="Floating label select example" multiple="false" size="5">
    <option selected>Open this select menu</option>
    <option value="1">One</option>
    <option value="2">Two</option>
    <option value="3">Three</option>
   <option value="4">four</option>
   <option value="5">five</option>
   <option value="6">six</option>
   <option value="7">seven</option>
  </select>
  <label for="floatingSelect">Works with selects</label>
</div>

i am using floating label for selecting multiple items with the above snippet. the problem is that the options texts are overriding the label text which doesn't look good when scrolling.

Bug reports must include:

as you can see the floating label with multiple select options, the option contents are overriding label

@mdo
Copy link
Member

mdo commented Jan 10, 2021

No plans to support this given the inconsistencies between <select>s across browsers. I'll add a note to our docs though about the compatibility issue—see #32744.

mdo added a commit that referenced this issue Jan 13, 2021
…#32744)

* Document size and multiple aren't supported on floating label selects

Closes #32660

* Update floating-labels.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants