Skip to content

Commit

Permalink
fix: issue with button and link tag color
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget committed Aug 1, 2024
1 parent 41495c7 commit 9024b05
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions packages/components/src/styles/_tag-components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,6 @@ $interactive-selectors: "label, button:not(.db-tab-remove-button), a";
}
}

%set-interactive-weak {
background-color: colors.$db-adaptive-bg-basic-level-1-default;

@include helpers.hover {
background-color: colors.$db-adaptive-bg-basic-level-1-hovered;
}

@include helpers.active {
background-color: colors.$db-adaptive-bg-basic-level-1-pressed;
}
}

%set-interactive-strong {
@extend %set-adaptive-strong-tag;

Expand Down Expand Up @@ -113,14 +101,30 @@ $interactive-selectors: "label, button:not(.db-tab-remove-button), a";
}

label:has(input) {
@extend %set-interactive-weak;
background-color: colors.$db-adaptive-bg-basic-level-1-default;

@include helpers.hover {
background-color: colors.$db-adaptive-bg-basic-level-1-hovered;
}

@include helpers.active {
background-color: colors.$db-adaptive-bg-basic-level-1-pressed;
}
}

&:not([data-emphasis]),
&[data-emphasis="weak"] {
// buttons and links should have bg-basic-level-2
@include get-interactive-selectors() {
@extend %set-interactive-weak;
background-color: colors.$db-adaptive-bg-basic-level-3-default;

@include helpers.hover {
background-color: colors.$db-adaptive-bg-basic-level-3-hovered;
}

@include helpers.active {
background-color: colors.$db-adaptive-bg-basic-level-3-pressed;
}
}

// checkbox should have bg-basic-level-3 (checked)
Expand Down

0 comments on commit 9024b05

Please sign in to comment.