Skip to content

Commit 807c4ea

Browse files
Copilotkdinev
andcommitted
Improve badge colors for WCAG AA compliance and update sizing
Co-authored-by: kdinev <[email protected]>
1 parent f386601 commit 807c4ea

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

projects/igniteui-angular/src/lib/core/styles/components/badge/_badge-theme.scss

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
$variant: map.get($theme, '_meta', 'theme');
1111

1212
%igx-badge-display {
13-
--size: var(--component-size, #{rem(22px)});
13+
--size: var(--component-size, var(--ig-size-medium, #{rem(22px)}));
1414
--_badge-size: var(--size);
1515

1616
display: inline-flex;
@@ -60,18 +60,38 @@
6060

6161
%igx-badge--success {
6262
background: color($color: 'success');
63+
color: white;
64+
65+
igx-icon {
66+
color: white;
67+
}
6368
}
6469

6570
%igx-badge--info {
6671
background: color($color: 'info');
72+
color: white;
73+
74+
igx-icon {
75+
color: white;
76+
}
6777
}
6878

6979
%igx-badge--warn {
7080
background: color($color: 'warn');
81+
color: white;
82+
83+
igx-icon {
84+
color: white;
85+
}
7186
}
7287

7388
%igx-badge--error {
7489
background: color($color: 'error');
90+
color: white;
91+
92+
igx-icon {
93+
color: white;
94+
}
7595
}
7696

7797
%igx-badge--dot {

0 commit comments

Comments
 (0)