News for hackers. Stuff that matters.
Re:Bringing Back Horizontal Rules in HTML Select Elements by crazygringo on Saturday January 27, 2024 @10:19AM (#39156256)
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/se...

Re:Bringing Back Horizontal Rules in HTML Select Elements by int_19h on Saturday January 27, 2024 @05:12PM (#39160403)
Firefox renders group titles using bold italic font while indenting the items under it, so it looks like a header.