una.im | Updates to the customizable select API
Briefly

The article discusses recent updates to a customizable select prototype, detailing changes such as the removal of certain pseudo-elements and adjustments to the user agent stylesheet. Key highlights include the transition from select::after for dropdown arrows to select::picker-icon and the use of flexbox for styling options. The author expresses satisfaction with these changes, emphasizing the importance of clarity in naming and the benefits of a streamlined user agent stylesheet that allows for easier customization. Developers are encouraged to explore updated demos to understand the new features better.
The dropdown arrow icon was changed from select::after to select::picker-icon, making it clearer and more intuitive for developers.
I’m also happy to see the rename of <selectedoption> to <selectedcontent>, which Jake Archibald brought up as being a potential source of confusion.
I'm always a fan of the less-is-more approach when it comes to these customizable components, because after all, the entire idea is to make them your own.
The removal of many styles from the user agent stylesheet simplifies customization and reduces the need for developers to override browser defaults.
Read at Una
[
|
]