Skip to content

Commit 8511430

Browse files
committed
fix: restore settings controls and tag dots in forced-colors mode
1 parent a3a5b37 commit 8511430

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

app/assets/main.css

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,47 @@
161161
forced-color-adjust: none;
162162
color: CanvasText;
163163
}
164+
165+
/* Settings page: keep accent/background radio swatches visible in forced colors. */
166+
:where(
167+
fieldset:has(input[type='radio'][name='accent-color']),
168+
fieldset:has(input[type='radio'][name='background-theme'])
169+
)
170+
> label {
171+
forced-color-adjust: none;
172+
border: 1px solid CanvasText;
173+
}
174+
175+
:where(
176+
fieldset:has(input[type='radio'][name='accent-color']),
177+
fieldset:has(input[type='radio'][name='background-theme'])
178+
)
179+
> label:has(> input:checked) {
180+
outline: 2px solid Highlight;
181+
outline-offset: 2px;
182+
}
183+
184+
/* Settings page: make toggle tracks and thumb visible in forced colors. */
185+
button[role='switch'] > span:last-of-type {
186+
forced-color-adjust: none;
187+
background: ButtonFace;
188+
border-color: ButtonText;
189+
}
190+
191+
button[role='switch'][aria-checked='true'] > span:last-of-type {
192+
background: Highlight;
193+
border-color: Highlight;
194+
}
195+
196+
button[role='switch'] > span:last-of-type > span {
197+
background: Canvas;
198+
}
199+
200+
/* Homepage tag dots are custom spans, not list markers. */
201+
:where([class~='bg-accent'][class~='rounded-full'][class~='w-1'][class~='h-1']) {
202+
forced-color-adjust: none;
203+
background: CanvasText;
204+
}
164205
}
165206

166207
html {

0 commit comments

Comments
 (0)