-
Notifications
You must be signed in to change notification settings - Fork 733
Description
As part of the discussion around appearance: base
colleagues and I presented a vision of how this could work. The idea outlined in that presentation is that stylability of form control pickers (the overlay box for select options, selecting a date, etc.) would have its own independent opt-in. This is because we think that form controls (excluding their pickers) can probably be mostly done all at once with a simple appearance: base
switch and accompanying pseudo-elements. This avoids the cost to authors of having to learn and match a variety of base-*
values.
Form control pickers however are quite a bit more involved and we expect it to take longer to tackle them and some we expect will never be stylable (e.g., the file picker). The idea is that when a form control uses appearance: base
you can address its picker using ::picker(form-control-identifier)
and independently set that to appearance: base
as well. E.g., select, select::picker(select) { appearance:base }
would give you a stylable select. ::picker(form-contorl-identifier)
would represent the outermost box of the form control picker and additional pseudo-elements will be needed to address the various pieces it consists of.