Skip to content

Commit 55efc31

Browse files
committed
Fix button styling when used on anchor elements
1 parent 2c28fc7 commit 55efc31

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/scss/phy/button.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
text-decoration: none;
4545
}
4646

47-
&:disabled {
47+
&:disabled, &.disabled {
4848
background-color: var(--buttons-dark-disabled);
4949
color: var(--buttons-dark-text);
5050
}
@@ -71,7 +71,7 @@
7171
text-decoration: none;
7272
}
7373

74-
&:disabled {
74+
&:disabled, &.disabled {
7575
color: var(--buttons-light-disabled-text);
7676
}
7777

@@ -95,7 +95,7 @@
9595
text-decoration: none;
9696
}
9797

98-
&:disabled {
98+
&:disabled, &.disabled {
9999
color: var(--buttons-light-disabled-text);
100100
}
101101

@@ -124,7 +124,7 @@
124124
box-shadow: 0 0 0 3px var(--buttons-dark), 0 0 0 4.5px var(--buttons-focus-ring) !important;
125125
}
126126

127-
&:disabled {
127+
&:disabled, &.disabled {
128128
color: var(--buttons-dark-disabled-text);
129129
}
130130
}

0 commit comments

Comments
 (0)