Wild how far you can push "customizable select" with just #CSS nerdy.dev/nice-select
69 reposts398 likes
Wild how far you can push "customizable select" with just #CSS nerdy.dev/nice-select
69 reposts398 likes
I was following what Joey shared to me as well as hints in the docs here open-ui.org/components/c... I did inspect UA shadow DOM to style the optgroup but maybe there is a bug yeah as I couldn’t select just the label part
@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()
cc @una.im for advice here! picker() is a popover, curious if it can be targetted and closed as such? and sounds like you're already aware of the new showPicker(), not sure what's up with a hidePicker()
::picker() is technically a popover but there is some interaction weirdness (see github.com/whatwg/html/...), which stretches to closePopover(). One way to programmatically close it would be to open (& close) another auto popover to close it (though this is super hacky & we need a better solution)
@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?
@nerdy.dev oooh, i'll take your word on that one, let's play!