Skip to content

Commit

Permalink
fix(Button): disable hover-style when disabeld
Browse files Browse the repository at this point in the history
  • Loading branch information
mfal committed Jan 31, 2024
1 parent 378c60d commit 129ef76
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/components/src/components/Button/Button.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@

@extend .primary;

&[disabled] {
background-color: var(--button--disabled-background-color);
color: var(--button--disabled-color);
}

&:has(.icon) {
padding: var(--button--padding);
}
Expand Down Expand Up @@ -50,6 +45,11 @@
background-color: var(--button--#{$variant}-background-color--pressed);
color: var(--button--#{$variant}-color--pressed);
}

&[disabled] {
background-color: var(--button--disabled-background-color);
color: var(--button--disabled-color);
}
}
}

Expand Down

0 comments on commit 129ef76

Please sign in to comment.