3 ms·
If form controls like select lists and checkboxes were style-able and compose-able I think it would reduce the need for JS in many cases. Multi select in parti
by paulryanrogers 7y ago
If form controls like select lists and checkboxes were style-able and compose-able I think it would reduce the need for JS in many cases.
Multi select in particular feels like it's stuck in the 90's.
Also select's lack of consistent search capabilities is painful.
- paulddraper 7y agoSearchable select is now a thing (for 90% of users at least). https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist https://developer.mozilla.org/en-US/docs/Web/HTML/Element/da...
- userbinator 7y agoSorry, I'm not convinced that UI elements need to be "style-able" by the site. Every site ends up being slightly different from others as a result, because it feels the need to reinvent its own custom UI controls with their own behaviour inconsistent from the OS or even the browser's UI. (I have the same gripe about "native" Electron apps.)
- oblio 7y agoYeah, good luck with that. Every company wants to stand out. There's no money to be made from conformity.
- deleted 7y ago[deleted]
- Izkata 7y agoSelect elements are pretty decently style-able nowadays [0], though the options in the dropdown don't seem to be supported (at least in Firefox). https://www.filamentgroup.com/lab/select-css.html https://www.filamentgroup.com/lab/select-css.html
- infamia 7y agoI'm certainly no CSS guru. And as you said, CSS doesn't cover everything. However, you can do quite a bit with CSS that most developers don't bother with: https://bradleytaunt.com/dynamic-checkboxes/ https://bradleytaunt.com/dynamic-checkboxes/ https://bradleytaunt.com/easy-custom-radio-inputs/ https://bradleytaunt.com/easy-custom-radio-inputs/ https://normform.netlify.com/ https://normform.netlify.com/