Wild how far you can push "customizable select" with just #CSS nerdy.dev/nice-select
Post
@nerdy.dev Looks lovely, I’m doing something similar atm. But I’m stuck with wanting to ”remote closing” the menu via JS also. Is there something similar to showPicker - but inverted - coming, do you know? Like hidePicker()
@nerdy.dev Another thing: I notice you use `fieldset` instead of `optgroup`, is that because styleability? I have had a hard time styling my optgroups.. but kept them becuase semantics, I guess.
I thought it was optgroup + legend? codepen.io/editor/lukew... - this seems to work?
codepen.ioUntitledA code demo by Luke Warlow created on CodePen
Yeah so legend is allowed inside optgroup (as well as fieldset) now, it's part of the new content model for select. In older browsers the parser will strip it so it's fine there too.
0 reposts1 like
No replies yet.