I feel like I'm missing something – what is <details> doing for you here?
HTML's <select> and <option> elements can't be styled because of this people use lots of JS to make inputs that work the same. You can, however, style <details> and <input type="radio"> elements to have the same functionality but be fully customisable by the creator.
Got it! Also I just realized you linked to a whole post about it, not just a JSFiddle for me to puzzle out on my own. Hi, I'm new here.
Sorry, I should have been clearer 🙂
Welcome to the community Erik.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.