Skip to content

Commit c6dfcb7

Browse files
authored
fix(badge): align colors with UI kits (#1466)
1 parent 6945277 commit c6dfcb7

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

src/components/badge/themes/badge.base.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,18 @@
3434

3535
:host([variant='info']) [part='base'] {
3636
background: color(info, 500);
37-
color: contrast-color(info, 500);
3837
}
3938

4039
:host([variant='success']) [part='base'] {
4140
background: color(success, 500);
42-
color: contrast-color(success, 500);
4341
}
4442

4543
:host([variant='warning']) [part='base'] {
4644
background: color(warn, 500);
47-
color: contrast-color(warn, 500);
4845
}
4946

5047
:host([variant='danger']) [part='base'] {
5148
background: color(error, 500);
52-
color: contrast-color(error, 500);
5349
}
5450

5551
:host([shape='rounded']),

src/components/badge/themes/shared/badge.common.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ $theme: $material;
55

66
[part='base'] {
77
box-shadow: var-get($theme, 'elevation');
8+
color: var-get($theme, 'text-color');
89
}
910

1011
::slotted(igc-icon) {
@@ -13,7 +14,6 @@ $theme: $material;
1314

1415
:host([variant='primary']) [part='base'] {
1516
background: var-get($theme, 'background-color');
16-
color: var-get($theme, 'text-color');
1717
}
1818

1919
:host([shape='square']) [part='base'] {

src/components/badge/themes/shared/badge.indigo.scss

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@
33

44
$theme: $indigo;
55

6-
:host([variant='info']),
7-
:host([variant='success']),
8-
:host([variant='warning']),
9-
:host([variant='danger']) {
10-
color: var-get($theme, 'text-color');
11-
}
12-
136
[part='base'] {
147
@include type-style('button');
158

0 commit comments

Comments
 (0)