Skip to content

Commit 9bbea92

Browse files
authored
styles: Fix button text color when hovering (#9306)
Buttons were not meant to get a green text color when the cursor hovers over them...
1 parent f70741e commit 9bbea92

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/styles/shared/buttons.module.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@
3434
cursor: pointer;
3535

3636
&:hover, &:active, &:visited {
37-
color: var(--text-color);
37+
/*
38+
* This is using `important` to override the `a:hover` declaration which
39+
* appears to have higher specificity than the `button:hover` declaration.
40+
*/
41+
color: var(--text-color) !important;
3842
}
3943

4044
img, svg {

0 commit comments

Comments
 (0)