Matthias Scharwies: Lesetipp: Updates to the customizable select API

Beitrag lesen

problematische Seite

Servus!

Von una Kravetz: Updates to the customizable select API

High-level overview of changes:

  1. ::select-fallback-button was removed, and the button itself is now display: contents. This means, styles for the button should be put on the select element instead.
  2. The dropdown arrow icon was changed from select::after to select::picker-icon
  3. Checkmarks that indicate the selected option were changed from option::before to option::checkmark
  4. <selectedoption> was renamed to <selectedcontent>
  5. Many styles were removed from the user agent stylesheet, such as default shadows, border-radius, and font styles
  6. Options now are styled using flexbox instead of block layout

Herzliche Grüße

Matthias Scharwies