Skip to content

Commit

Permalink
fix: fix active color of buttons (#3327)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeripeierSBB authored Dec 23, 2024
1 parent 9d47116 commit 89e934d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/elements/button/common/button-common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ $active: ':active, [data-active]';
}

:host(:not(#{$disabled}):is(#{$active})) & {
color: var(--sbb-button-color-active-text);
background-color: var(--sbb-button-color-active-background);
border-color: var(--sbb-button-color-active-border);
}
Expand All @@ -201,6 +200,10 @@ $active: ':active, [data-active]';
pointer-events: none;
}

:host(:not(#{$disabled}):is(#{$active})) & {
color: var(--sbb-button-color-active-text);
}

:host(:not(#{$disabled}, #{$active}):hover) & {
@include sbb.hover-mq($hover: true) {
color: var(--sbb-button-color-hover-text);
Expand Down

0 comments on commit 89e934d

Please sign in to comment.