Skip to content

Commit

Permalink
fix(sbb-accent-button): adapt to new design (#3313)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeripeierSBB authored and github-actions committed Dec 19, 2024
1 parent b9ce6d1 commit 1af2691
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions src/elements/button/common/accent-button.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
:host {
--sbb-button-color-active-background: var(--sbb-color-black);
--sbb-button-color-active-border: var(--sbb-color-cloud);
--sbb-button-color-active-background: var(--sbb-color-midnight);
--sbb-button-color-active-border: var(--sbb-color-midnight);
--sbb-button-color-active-text: var(--sbb-color-cloud);
--sbb-button-color-default-background: var(--sbb-color-charcoal);
--sbb-button-color-default-border: var(--sbb-color-cloud);
--sbb-button-color-default-border: var(--sbb-color-charcoal);
--sbb-button-color-default-text: var(--sbb-color-white);
--sbb-button-color-hover-background: var(--sbb-color-midnight);
--sbb-button-color-hover-border: var(--sbb-color-cloud);
--sbb-button-color-hover-background: var(--sbb-color-charcoal);
--sbb-button-color-hover-border: var(--sbb-color-charcoal);
--sbb-button-color-hover-text: var(--sbb-color-milk);
--sbb-button-shadow-1-color: var(--sbb-color-platinum-alpha-20);
--sbb-button-shadow-2-color: var(--sbb-color-cement-alpha-20);
}

:host([negative]) {
--sbb-button-color-active-background: var(--sbb-color-white);
--sbb-button-color-active-border: var(--sbb-color-white);
--sbb-button-color-active-text: var(--sbb-color-anthracite);
--sbb-button-color-default-background: var(--sbb-color-milk);
--sbb-button-color-default-border: var(--sbb-color-milk);
--sbb-button-color-default-text: var(--sbb-color-midnight);
--sbb-button-color-hover-background: var(--sbb-color-milk);
--sbb-button-color-hover-border: var(--sbb-color-milk);
--sbb-button-color-hover-text: var(--sbb-color-iron);
--sbb-button-shadow-1-color: var(--sbb-color-black-alpha-30);
--sbb-button-shadow-2-color: var(--sbb-color-black-alpha-30);
}

:host(:not([disabled], :disabled, [disabled-interactive], :active, [data-active])) {
--sbb-button-box-shadow: var(--sbb-button-box-shadow-definition);
}

0 comments on commit 1af2691

Please sign in to comment.