Skip to content

Commit 93b9891

Browse files
committed
fix(badge): change default badge color to primary
per Ben closes #5222
1 parent f8938c6 commit 93b9891

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ionic/components/badge/badge.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
$badge-font-size: 1.3rem !default;
77
$badge-font-weight: bold !default;
8+
$badge-background-color: map-get($colors, primary);
89

910

1011
ion-badge {
@@ -21,7 +22,8 @@ ion-badge {
2122
font-weight: $badge-font-weight;
2223
line-height: 1;
2324

24-
background: #ccc;
25+
background-color: $badge-background-color;
26+
color: inverse($badge-background-color);
2527

2628
&:empty {
2729
display: none;

0 commit comments

Comments
 (0)