Front End Happy Hour cover image

Episode 175 - Modern CSS - Drinking in style

Front End Happy Hour

00:00

How to Create an Easily Stylable Select Component

The option elements were always harder to style than the select itself. The classic thing is like, Oh, sure, I can write a div with an on click on it that that opens up another div that has a bunch of options in it. That is super inaccessible. For one, it's a click only. Did you handle all the other ways that you can open it? Do the arrow keys work? Does the tab keys work? does the escape key work to close it? Where does the focus go after I leave it?"

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app