mdgriffith / elm-ui

What if you never had to write CSS again?
https://package.elm-lang.org/packages/mdgriffith/elm-ui/latest/
BSD 3-Clause "New" or "Revised" License
1.35k stars 111 forks source link

All options become focused when using `Element.focused` + `Element.Input.optionWith` #318

Open renanpvaz opened 3 years ago

renanpvaz commented 3 years ago

Ellie showing the issue Partial workaround using tabindex

Expected behavior I should be able to style the options using Element.Input.optionWith + Element.focused and not have all of them appear focused when clicking anywhere on the radio buttons. I believe that ideally each option should have its own <label> instead of the whole set being wrapped by one.

Versions