Skip to content

Commit

Permalink
fix(button): disabled variants
Browse files Browse the repository at this point in the history
  • Loading branch information
MEsteves22 committed Mar 14, 2024
1 parent 8ca0d0c commit e2b2034
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions packages/core/src/Button/Button.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ export const { staticClasses, useClasses } = createClasses("HvButton", {
disabled: {
cursor: "not-allowed",
color: theme.colors.secondary_60,
borderColor: "transparent",
backgroundColor: "transparent",
borderColor: theme.colors.atmo3,
backgroundColor: theme.colors.atmo3,
"&:hover, &:focus-visible": {
backgroundColor: "transparent",
borderColor: "transparent",
backgroundColor: theme.colors.atmo3,
borderColor: theme.colors.atmo3,
},
},
icon: {
Expand All @@ -56,10 +56,26 @@ export const { staticClasses, useClasses } = createClasses("HvButton", {
margin: -1,
},
},
subtle: { backgroundColor: "transparent" },
subtle: {
backgroundColor: "transparent",
"&$disabled": {
backgroundColor: "transparent",
"&:hover, &:focus-visible": {
backgroundColor: "transparent",
},
},
},
ghost: {
borderColor: "transparent",
backgroundColor: "transparent",
"&$disabled": {
borderColor: "transparent",
backgroundColor: "transparent",
"&:hover, &:focus-visible": {
borderColor: "transparent",
backgroundColor: "transparent",
},
},
},
semantic: {
color: theme.colors.base_dark,
Expand Down

0 comments on commit e2b2034

Please sign in to comment.