Skip to content

Commit

Permalink
fix: colors for tag to work with dark-mode (#1451)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget authored Aug 22, 2023
1 parent d7a92be commit 0822089
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/components/src/styles/tag-components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@use "@db-ui/foundations/build/scss/helpers/component" as *;

@mixin get-tag-colors() {
@include get-variant-bg-color(0.08);
@extend %db-bg-neutral-strong;

&[data-emphasis="strong"] {
@extend %db-neutral-component;
Expand Down Expand Up @@ -46,11 +46,11 @@

@mixin get-tag-colors-interactive() {
&:has(input:not(:checked)) {
@extend %bg-transparent-interactive;
@extend %db-bg-neutral;
}

&:has(input:checked) {
@include get-variant-bg-color(0.08);
@extend %db-bg-neutral-strong-ia;

&[data-emphasis="strong"] {
@extend %db-neutral-component-ia;
Expand Down Expand Up @@ -89,5 +89,10 @@
}
}
}

&[data-emphasis="strong"] {
/* We force white as color for strong tags */
color: #fff;
}
}
}

0 comments on commit 0822089

Please sign in to comment.