- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Thu, 07 Nov 2024 17:04:28 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed ``[css-ui] Colors to use for appearance:base `<select>` ``. <details><summary>The full IRC log of that discussion</summary> <chrishtr> jarhar: last time we talked about this issue I tried to loop in Tim's proposed styles for buttons for appearance:base into selecct<br> <chrishtr> jarhar: also talked about system colors and contrast, and the picker<br> <chrishtr> jarhar: since then I've posted some styles that used Tim's proposed colors for in-page and system colors for picker<br> <chrishtr> jarhar: thought these would be reasonable defaults<br> <chrishtr> jarhar: Emilio proposed an alternative about system colors<br> <chrishtr> jarhar: I don't have strong opinions but would like to choose something<br> <ntim> q+<br> <astearns> ack ntim<br> <chrishtr> jarhar: Emilio liked system colors because it ensures contrast with all the modes<br> <chrishtr> ntim: my original suggestion of using currentcolor and transparency was to make in-page controls as easy to style as a blank div<br> <chrishtr> ntim: for the picker, we can't use transparency. think we should use system colors there. Dialogs and popovers use them by default also.<br> <chrishtr> ntim: everything I've proposed is consistent with other things in HTML<br> <emilio> q+<br> <astearns> ack emilio<br> <chrishtr> emilio: The main reason why I think system colors could be worth it is that it works with color scheme and forced colors.<br> <chrishtr> emilio: Also don't think it would be not too hard to do it. But don't object to using currentcolor etc<br> <masonf> q+<br> <astearns> ack masonf<br> <chrishtr> masonf: I think we should aim for having a thing that is easiest to understand, since developers are likely to override anyway.<br> <jensimmons> q+<br> <astearns> ack fantasai<br> <chrishtr> masonf: weakly in favor of what Emilio is proposing for that reason<br> <chrishtr> fantasai: the currentcolor approach is more minimal I think<br> <masonf> In devtools, they'll see that background-color is `color-mix(in lab, currentColor 10%, transparent)`<br> <jensimmons> 100% developers do not know that system colors exist. They will assume these are defined colors in the UA stylesheet.<br> <chrishtr> fantasai: they get colors either way, but fewer with currentcolor, so I think it's easier for them to override just that one<br> <astearns> ack jensimmons<br> <chrishtr> jensimmons: there are different groups of colors: text, borders, bits and pieces<br> <chrishtr> jensimmons: why are the backgrounds of my form a certain color?<br> <chrishtr> jensimmons: as soon as they change the color of the page it'll show a difference for their form<br> <chrishtr> jensimmons: nothing else on the page comes with a background color, so I think it's better for this to not have one eother<br> <keithamus> q+<br> <astearns> q+<br> <chrishtr> jensimmons: like the idea of a transparent background<br> <emilio> q+<br> <chrishtr> jensimmons: it's busywork to have to change that<br> <chrishtr> jensimmons: this makes them feel a pain in the ass to style<br> <astearns> ack keithamus<br> <chrishtr> keithamus: dialogs and popovers have canvas as the background color<br> <chrishtr> keithamus: my preference would be system colors<br> <astearns> ack astearns<br> <chrishtr> astearns: I wonder if using transparency would get us into problems with contrast<br> <astearns> ack emilio<br> <annevk> I think dialog and popover are different in that they are displayed in the top layer.<br> <annevk> Form controls are not.<br> <chrishtr> emilio: it doesn't necessarily cause contrast issues unless you use background images<br> <jensimmons> Yes, canvas and dialog have backgrounds. That makes sense. Form controls don't feel special — like they should be part of the page... they are elements on the page. Where dialog — well, of course it has a color. Just like the body itself. It's a thing, that needs a background.<br> <chrishtr> emilio: I think native app design systems do have background colors on their form controls?<br> <ntim> material design :)<br> <astearns> ack fantasai<br> <chrishtr> fantasai: is there a precedent for toolkits with transparent backgrounds?<br> <jensimmons> What's also super important is thinking through how authors will override the colors. How will they change each, and what else does that affect?<br> <chrishtr> fantasai: if we go with system colors we'd have to define more of them<br> <chrishtr> fantasai: different systems also display select elements differently<br> <chrishtr> keithamus: system colors are an abstraction away from color mixing, but we're presumably sticking to one style<br> <chrishtr> emilio: nothing prevents us from mixing to currentcolor<br> <chrishtr> fantasai: system colors require contrast, but currrentcolor doesn't know what it is mixing with?<br> <chrishtr> fantasai: needs contrast be\tween system colors<br> <fantasai> (can't compute a system color to transparent)<br> <fantasai> +1 to understanding the developer experience better<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10909#issuecomment-2462779662 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 7 November 2024 17:04:29 UTC