Skip to content

Commit d71b82b

Browse files
fix icon inside badge
1 parent 5815013 commit d71b82b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

core/src/components/badge/badge.ionic.scss

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,23 @@
8080
height: globals.$ion-scale-400;
8181
}
8282

83+
:host(.badge-small) ::slotted(ion-icon) {
84+
width: globals.$ion-scale-300;
85+
height: globals.$ion-scale-300;
86+
}
87+
8388
/* Medium Badge */
8489
:host(.badge-medium) {
8590
@include globals.typography(globals.$ion-body-md-medium);
8691
min-width: globals.$ion-scale-600;
8792
height: globals.$ion-scale-600;
8893
}
8994

95+
:host(.badge-medium) ::slotted(ion-icon) {
96+
width: globals.$ion-scale-400;
97+
height: globals.$ion-scale-400;
98+
}
99+
90100
// Badge (hint)
91101
// --------------------------------------------------
92102

@@ -140,16 +150,6 @@
140150
transform: translate(-50%, -50%);
141151
}
142152

143-
:host(.badge-small) ::slotted(ion-icon) {
144-
width: globals.$ion-scale-300;
145-
height: globals.$ion-scale-300;
146-
}
147-
148-
:host(.badge-medium) ::slotted(ion-icon) {
149-
width: globals.$ion-scale-400;
150-
height: globals.$ion-scale-400;
151-
}
152-
153153
// Badge in Button
154154
// --------------------------------------------------
155155

0 commit comments

Comments
 (0)