Skip to content

Commit

Permalink
fix(core): use correct background color for outlines buttons with non…
Browse files Browse the repository at this point in the history
…-white backgrounds
  • Loading branch information
fynnfeldpausch committed Dec 16, 2024
1 parent 5fdfe86 commit b2f4557
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/components/cat-button/cat-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ $button-sizes: (

.cat-button-outlined {
background-color: cat-token('color.ui.background.surface');
box-shadow: inset 0 0 0 1px cat-token-wrap(var(--base), $alpha: 0.2);
box-shadow: inset 0 0 0 1px color-mix(in srgb, cat-token-wrap(var(--base)) 20%, #ffffff);
color: cat-token-wrap(var(--text));

&.cat-button-disabled {
Expand All @@ -142,15 +142,15 @@ $button-sizes: (
}

&:hover:not(.cat-button-disabled):not(.cat-button-loading) {
background-color: cat-token-wrap(var(--base), $alpha: 0.1);
background-color: color-mix(in srgb, cat-token-wrap(var(--base)) 10%, #ffffff);
}

&.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading) {
background-color: cat-token-wrap(var(--base), $alpha: 0.1);
background-color: color-mix(in srgb, cat-token-wrap(var(--base)) 10%, #ffffff);
}

&:active:not(.cat-button-disabled):not(.cat-button-loading) {
background-color: cat-token-wrap(var(--base), $alpha: 0.1);
background-color: color-mix(in srgb, cat-token-wrap(var(--base)) 10%, #ffffff);
}
}

Expand Down

0 comments on commit b2f4557

Please sign in to comment.