From 5cc8adb1d5a07cc5c6d3ee6a614cac3792503b8f Mon Sep 17 00:00:00 2001 From: Susmita Bhowmik Date: Fri, 20 Feb 2026 08:09:19 -0700 Subject: [PATCH] fix(chip): scale slotted icon size by chip size (#30961) Issue number: resolves internal --------- ## What is the current behavior? When an icon was placed within a chip, the icon size was the same regardless of the chip size. ## What is the new behavior? Scales the size of the icon based on design specifications. ## Does this introduce a breaking change? - [ ] Yes - [x] No ## Other information --- core/src/components/chip/chip.ionic.scss | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/core/src/components/chip/chip.ionic.scss b/core/src/components/chip/chip.ionic.scss index 999fdf98f7..cbcf411fcc 100644 --- a/core/src/components/chip/chip.ionic.scss +++ b/core/src/components/chip/chip.ionic.scss @@ -60,12 +60,6 @@ --border-radius: #{globals.$ion-border-radius-0}; } -// Chip Icon -// --------------------------------------------- -::slotted(ion-icon) { - font-size: globals.$ion-font-size-400; -} - // Size // --------------------------------------------- @@ -73,12 +67,20 @@ min-height: globals.$ion-scale-600; font-size: globals.$ion-font-size-300; + + ::slotted(ion-icon) { + font-size: globals.$ion-font-size-300; + } } :host(.chip-large) { min-height: globals.$ion-scale-800; font-size: globals.$ion-font-size-350; + + ::slotted(ion-icon) { + font-size: globals.$ion-font-size-400; + } } // Subtle Chip