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

Consider adding auto-sizing for <select> as a listbox #8183

Open
zcorpan opened this issue Aug 11, 2022 · 1 comment
Open

Consider adding auto-sizing for <select> as a listbox #8183

zcorpan opened this issue Aug 11, 2022 · 1 comment
Labels

Comments

@zcorpan
Copy link
Member

zcorpan commented Aug 11, 2022

Similar to #6807 but for <select multiple> / <select size=2>

There's no way without JS to specify that a listbox select should have the same height as its contents.

Anecdotal example of a requests for this (found by searching "auto-size select multiple"):

https://stackoverflow.com/questions/9943886/make-multiple-select-to-adjust-its-height-to-fit-options-without-scroll-bar

Do UI libraries typically have a "<select> as a listbox" widget? For those that do, can it auto-size?

cc @whatwg/forms @mfreed7

@annevk
Copy link
Member

annevk commented Sep 30, 2022

This also sounds like the kind of thing I'd like to leave to CSS. cc @pxlcoder @whatwg/css

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants
@zcorpan @annevk and others