Skip to content

Commit b36e9c4

Browse files
committed
chore: restore forced colors
1 parent ee1082e commit b36e9c4

1 file changed

Lines changed: 29 additions & 7 deletions

File tree

app/components/Settings/Toggle.client.vue

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,20 +108,42 @@ const id = useId()
108108
<style scoped>
109109
/* Support forced colors */
110110
@media (forced-colors: active) {
111-
/* Track */
111+
/* Label text */
112+
label > span {
113+
color: Highlight !important;
114+
forced-color-adjust: none;
115+
background: Canvas !important;
116+
}
117+
118+
/* Track (OFF & ON base) */
119+
input + span {
120+
forced-color-adjust: none;
121+
border: 1px solid CanvasText !important;
122+
background: Canvas !important;
123+
}
124+
125+
/* Track ON */
112126
input:checked + span {
113-
background: Highlight;
127+
background: Highlight !important;
128+
border-color: CanvasText !important;
129+
}
130+
131+
/* Thumb (OFF) - Purple circle */
132+
input + span::after {
133+
forced-color-adjust: none;
134+
background-color: Highlight !important;
135+
border: none !important;
114136
}
115137
116-
/* Thumb border/bg */
138+
/* Thumb (ON) - White circle on purple track */
117139
input:checked + span::after {
118-
background: Canvas;
119-
border-color: CanvasText;
140+
background-color: Canvas !important;
120141
}
121142
122-
/* Icon */
143+
/* Icon (ON) - Purple check on white thumb */
123144
.i-lucide\:check {
124-
color: Highlight;
145+
color: Highlight !important;
146+
forced-color-adjust: none;
125147
}
126148
}
127149

0 commit comments

Comments
 (0)