Skip to content

Commit 5e9729d

Browse files
fix(chip): scale slotted icon size by chip size
1 parent 177a6ea commit 5e9729d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

core/src/components/chip/chip.ionic.scss

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,25 +60,27 @@
6060
--border-radius: #{globals.$ion-border-radius-0};
6161
}
6262

63-
// Chip Icon
64-
// ---------------------------------------------
65-
::slotted(ion-icon) {
66-
font-size: globals.$ion-font-size-400;
67-
}
68-
6963
// Size
7064
// ---------------------------------------------
7165

7266
:host(.chip-small) {
7367
min-height: globals.$ion-scale-600;
7468

7569
font-size: globals.$ion-font-size-300;
70+
71+
::slotted(ion-icon) {
72+
font-size: globals.$ion-font-size-300;
73+
}
7674
}
7775

7876
:host(.chip-large) {
7977
min-height: globals.$ion-scale-800;
8078

8179
font-size: globals.$ion-font-size-350;
80+
81+
::slotted(ion-icon) {
82+
font-size: globals.$ion-font-size-400;
83+
}
8284
}
8385

8486
// Subtle Chip

0 commit comments

Comments
 (0)