Skip to content

Commit 168247b

Browse files
committed
Update styles.module.css
1 parent 5e5eced commit 168247b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎Website/src/components/ArchSwitcher/styles.module.css‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@
2323
color: var(--ifm-color-emphasis-900);
2424
}
2525

26-
.optionActive,
27-
.optionActive:hover {
26+
/* Compound selector (not just .optionActive) so this reliably outranks
27+
.option's background in specificity — production CSS minification can
28+
reorder same-specificity rules and silently drop the active highlight. */
29+
.option.optionActive,
30+
.option.optionActive:hover {
2831
background: var(--ifm-color-primary);
2932
color: #000;
3033
}

0 commit comments

Comments
 (0)