2 ms·
Funny, it looks way better on mobile than it does on desktop [1]. On desktop (Chrome on Mac) each optgroup label is just a disabled item, and then its options
by crazygringo 3y ago
Funny, it looks way better on mobile than it does on desktop [1].
On desktop (Chrome on Mac) each optgroup label is just a disabled item, and then its options are indented menu items below it.
It looks totally hacky -- the name of a group shouldn't seem like "disabled" option, nor are indentations in menu items an established convention.
That sheet on iOS is perfectly intuitive, however.
[1] Link to page section with demo: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#select_with_grouping_options https://developer.mozilla.org/en-US/docs/Web/HTML/Element/se...
- int_19h 3y agoFirefox renders group titles using bold italic font while indenting the items under it, so it looks like a header.