DEV Community

loading...

Discussion on: Dear WHATWG, fix datalist

Collapse
elmuerte profile image
Michiel Hendriks

Being able to actually style them. Radio and checkbox styling is generally done via hacks using ::after. But select needs extensive hacking via JavaScript as styling is quite limited on the dropdown of options.

Thread Thread
tamb profile image
Tamb Author

I totally agree. But for the most part I have been able to get around those styles with just css and some extra HTML. Datalist is literally impossible to style. This is a big issue. So we end up replacing datalist wholesale with a custom component.

Thread Thread
brettcnelson profile image
𝙱𝚛𝚎𝚝𝚝

developer.mozilla.org/en-US/docs/W...

Didn't even know datalist existed until i read this post, so thanks. I'm sure you're aware but thought this link was interesting regarding styling.