You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CSS accent-color property is used to specify the accent color for user-interface controls such as checkboxes, radio buttons, range, and progress elements. It has been shipped and available in all major browsers. With accent-color we could easily change the "selected" state without implementing hacks.
The CSS
accent-color
property is used to specify the accent color for user-interface controls such as checkboxes, radio buttons, range, and progress elements. It has been shipped and available in all major browsers. Withaccent-color
we could easily change the "selected" state without implementing hacks.https://developer.mozilla.org/en-US/docs/Web/CSS/accent-color
Actual Behaviour
It looks like Spectrum uses
.spectrum-Checkbox-box
together with some svg files in order to generate the highlighted state:New Behaviour
Above markup could be simplified to:
with below CSS changes:
spectrum-Checkbox
: removevertical-align
andmin-block-size
; addalign-items: center
spectrum-Checkbox-input
: removeopacity
,position
,block-size
,inline-size
, andmargin
; addaccent-color
spectrum-Checkbox-label
: removemargin-block-start
for example:
Results
default
invalid
The text was updated successfully, but these errors were encountered: