Skip to content

Commit

Permalink
fix: button secondary variation hover background
Browse files Browse the repository at this point in the history
  • Loading branch information
abelflopes committed Nov 24, 2023
1 parent 2c51fec commit 16bd98c
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions packages/components/button/src/styles/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
.root {
@include font-base;

background-color: get-css-var(button, background-color);
color: get-css-var(button, color);
font-weight: 700;
color: inherit;
border: none;
cursor: pointer;
display: inline-flex;
Expand All @@ -14,23 +15,27 @@
border-radius: get-spacing(1);
transition: background-color 0.2s ease;

&:hover {
background-color: get-color(highlight-primary-dark);
}

&:disabled {
cursor: not-allowed;
}
}

.primary {
background-color: get-color(highlight-primary);
color: get-color(neutral-0);
@include define-css-var(button, background-color, get-color(highlight-primary));
@include define-css-var(button, color, get-color(neutral-0));

&:hover {
@include define-css-var(button, background-color, get-color(highlight-primary-dark));
}
}

.secondary {
background: get-color(neutral-200);
color: get-color(neutral-800);
@include define-css-var(button, background-color, get-color(neutral-200));
@include define-css-var(button, color, get-color(neutral-800));

&:hover {
@include define-css-var(button, background-color, get-color(neutral-300));
}
}

.icon {
Expand Down

0 comments on commit 16bd98c

Please sign in to comment.