|
2 | 2 | @use "@db-ui/foundations/build/scss/color/color-variants" as *; |
3 | 3 | @use "@db-ui/foundations/build/scss/helpers/component" as *; |
4 | 4 |
|
| 5 | +@mixin overwrite-strong-white() { |
| 6 | + /* We force white as color for strong tags */ |
| 7 | + --db-current-color: #fff; |
| 8 | + color: var(--db-current-color); |
| 9 | +} |
| 10 | + |
5 | 11 | @mixin get-tag-colors() { |
6 | 12 | @extend %db-bg-neutral-strong; |
7 | 13 |
|
8 | 14 | &[data-emphasis="strong"] { |
9 | 15 | @extend %db-neutral-component; |
| 16 | + @include overwrite-strong-white(); |
10 | 17 | } |
11 | 18 |
|
12 | 19 | @each $name, $colors in $component-variants { |
|
16 | 23 |
|
17 | 24 | &[data-emphasis="strong"] { |
18 | 25 | @extend %db-critical-component; |
| 26 | + |
| 27 | + @include overwrite-strong-white(); |
19 | 28 | } |
20 | 29 | } @else if ($name == "informational") { |
21 | 30 | @extend %db-bg-informational; |
22 | 31 |
|
23 | 32 | &[data-emphasis="strong"] { |
24 | 33 | @extend %db-informational-component; |
| 34 | + |
| 35 | + @include overwrite-strong-white(); |
25 | 36 | } |
26 | 37 | } @else if ($name == "warning") { |
27 | 38 | @extend %db-bg-warning; |
28 | 39 |
|
29 | 40 | &[data-emphasis="strong"] { |
30 | 41 | @extend %db-warning-component; |
| 42 | + |
| 43 | + @include overwrite-strong-white(); |
31 | 44 | } |
32 | 45 | } @else if ($name == "successful") { |
33 | 46 | @extend %db-bg-successful; |
34 | 47 |
|
35 | 48 | &[data-emphasis="strong"] { |
36 | 49 | @extend %db-successful-component; |
| 50 | + |
| 51 | + @include overwrite-strong-white(); |
37 | 52 | } |
38 | 53 | } |
39 | 54 |
|
|
45 | 60 | } |
46 | 61 |
|
47 | 62 | @mixin get-tag-colors-interactive() { |
| 63 | + &[data-emphasis="strong"] { |
| 64 | + @include overwrite-strong-white(); |
| 65 | + } |
| 66 | + |
48 | 67 | &:has(input:not(:checked)) { |
49 | 68 | @extend %db-bg-neutral; |
50 | 69 | } |
|
54 | 73 |
|
55 | 74 | &[data-emphasis="strong"] { |
56 | 75 | @extend %db-neutral-component-ia; |
| 76 | + @include overwrite-strong-white(); |
57 | 77 | } |
58 | 78 |
|
59 | 79 | @each $name, $colors in $component-variants { |
|
63 | 83 |
|
64 | 84 | &[data-emphasis="strong"] { |
65 | 85 | @extend %db-critical-component-ia; |
| 86 | + |
| 87 | + @include overwrite-strong-white(); |
66 | 88 | } |
67 | 89 | } @else if ($name == "informational") { |
68 | 90 | @extend %db-bg-informational-ia; |
69 | 91 |
|
70 | 92 | &[data-emphasis="strong"] { |
71 | 93 | @extend %db-informational-component-ia; |
| 94 | + |
| 95 | + @include overwrite-strong-white(); |
72 | 96 | } |
73 | 97 | } @else if ($name == "warning") { |
74 | 98 | @extend %db-bg-warning-ia; |
75 | 99 |
|
76 | 100 | &[data-emphasis="strong"] { |
77 | 101 | @extend %db-warning-component-ia; |
| 102 | + |
| 103 | + @include overwrite-strong-white(); |
78 | 104 | } |
79 | 105 | } @else if ($name == "successful") { |
80 | 106 | @extend %db-bg-successful-ia; |
81 | 107 |
|
82 | 108 | &[data-emphasis="strong"] { |
83 | 109 | @extend %db-successful-component-ia; |
| 110 | + |
| 111 | + @include overwrite-strong-white(); |
84 | 112 | } |
85 | 113 | } |
86 | 114 |
|
|
0 commit comments