Skip to content

Commit 794ab2c

Browse files
committed
fix: improve forced-colors toggle contrast
1 parent 8511430 commit 794ab2c

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

app/assets/main.css

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,17 +184,24 @@
184184
/* Settings page: make toggle tracks and thumb visible in forced colors. */
185185
button[role='switch'] > span:last-of-type {
186186
forced-color-adjust: none;
187-
background: ButtonFace;
188-
border-color: ButtonText;
187+
}
188+
189+
button[role='switch'][aria-checked='false'] > span:last-of-type {
190+
background: Canvas;
191+
border-color: CanvasText;
192+
}
193+
194+
button[role='switch'][aria-checked='false'] > span:last-of-type > span {
195+
background: CanvasText;
189196
}
190197

191198
button[role='switch'][aria-checked='true'] > span:last-of-type {
192199
background: Highlight;
193200
border-color: Highlight;
194201
}
195202

196-
button[role='switch'] > span:last-of-type > span {
197-
background: Canvas;
203+
button[role='switch'][aria-checked='true'] > span:last-of-type > span {
204+
background: HighlightText;
198205
}
199206

200207
/* Homepage tag dots are custom spans, not list markers. */

0 commit comments

Comments
 (0)