Skip to content

Commit ce3e8dd

Browse files
janicektliterat
authored andcommitted
Feat(web): DS-132 Add disabled class for ButtonLink component
1 parent 15da8e2 commit ce3e8dd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/web/src/components/Button/_Button.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
text-decoration: none;
2525
}
2626

27-
&:disabled {
27+
&:disabled,
28+
&.Button--disabled {
2829
cursor: default;
2930
pointer-events: none;
3031
}

packages/web/src/components/Button/_tools.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
border-color: map.get($variables, active-border-color);
2121
}
2222

23-
&:disabled {
23+
&:disabled,
24+
&.Button--disabled {
2425
color: map.get($variables, disabled-color);
2526
background-color: map.get($variables, disabled-background);
2627
border-color: map.get($variables, disabled-border-color);

0 commit comments

Comments
 (0)