Skip to content

Commit

Permalink
feat(button): update hover and active background colors
Browse files Browse the repository at this point in the history
  • Loading branch information
aPreciado88 committed Feb 21, 2025
1 parent 9a458ab commit 394529c
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 106 deletions.
33 changes: 0 additions & 33 deletions packages/calcite-components/src/components/button/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -303,31 +303,6 @@
}
}
}
// outline
:host([appearance="outline-fill"]),
:host([appearance="outline"]) {
a,
button {
box-shadow: inset 0 0 0 1px
var(--calcite-button-shadow-color, var(--calcite-internal-button-shadow-color, transparent));

&:hover {
box-shadow: inset 0 0 0 1px
var(
--calcite-button-shadow-color,
var(--calcite-internal-button-shadow-color, var(--calcite-color-foreground-3))
);
}
&:focus,
&:active {
box-shadow: inset 0 0 0 2px
var(
--calcite-button-shadow-color,
var(--calcite-internal-button-shadow-color, var(--calcite-color-foreground-3))
);
}
}
}

:host([appearance="outline-fill"]) {
button,
Expand All @@ -348,7 +323,6 @@
a {
--calcite-internal-button-border-color: var(--calcite-color-brand);
--calcite-internal-button-text-color: theme("colors.brand");
--calcite-internal-button-background-color: var(--calcite-color-foreground-1);

&:hover {
--calcite-internal-button-border-color: var(--calcite-color-brand-hover);
Expand All @@ -374,7 +348,6 @@
button,
a {
--calcite-internal-button-border-color: var(--calcite-color-status-danger);
--calcite-internal-button-background-color: var(--calcite-color-foreground-1);
--calcite-internal-button-text-color: theme("colors.danger");

&:hover {
Expand Down Expand Up @@ -402,7 +375,6 @@
a {
--calcite-internal-button-border-color: theme("borderColor.color.1");
--calcite-internal-button-text-color: var(--calcite-color-text-1);
--calcite-internal-button-background-color: var(--calcite-color-foreground-1);

&:hover {
--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3);
Expand Down Expand Up @@ -432,7 +404,6 @@
button,
a {
--calcite-internal-button-text-color: var(--calcite-color-text-1);
--calcite-internal-button-background-color: var(--calcite-color-foreground-1);
--calcite-internal-button-border-color: var(--calcite-color-inverse);

&:hover {
Expand Down Expand Up @@ -470,7 +441,6 @@
a {
--calcite-internal-button-border-color: var(--calcite-color-brand);
--calcite-internal-button-text-color: theme("colors.brand");
--calcite-internal-button-background-color: var(--calcite-color-transparent);

&:hover {
--calcite-internal-button-border-color: var(--calcite-color-brand-hover);
Expand All @@ -497,7 +467,6 @@
a {
--calcite-internal-button-border-color: var(--calcite-color-status-danger);
--calcite-internal-button-text-color: theme("colors.danger");
--calcite-internal-button-background-color: var(--calcite-color-transparent);

&:hover {
--calcite-internal-button-border-color: var(--calcite-color-status-danger-hover);
Expand All @@ -523,7 +492,6 @@
button,
a {
--calcite-internal-button-text-color: var(--calcite-color-text-1);
--calcite-internal-button-background-color: var(--calcite-color-transparent);
--calcite-internal-button-border-color: theme("borderColor.color.1");

&:hover {
Expand All @@ -543,7 +511,6 @@
button,
a {
--calcite-internal-button-text-color: var(--calcite-color-text-1);
--calcite-internal-button-background-color: var(--calcite-color-transparent);
--calcite-internal-button-border-color: var(--calcite-color-inverse);
&:hover {
--calcite-internal-button-border-color: var(--calcite-color-inverse-hover);
Expand Down
Loading

0 comments on commit 394529c

Please sign in to comment.