From 6c74618a073e38086a5ed816950b69b8cdd9241f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Ferreira?= <60441552+JoaoFerreira-FrontEnd@users.noreply.github.com> Date: Fri, 26 Dec 2025 17:46:40 +0000 Subject: [PATCH] fix(segment-button): correct color for button childs (#30891) Issue number: internal ## What is the new behavior? - guarantee that every child of segment-button has color: primary-color when checked; ## Does this introduce a breaking change? - [ ] Yes - [x] No Sample: https://ionic-framework-git-rou-12439-ionic1.vercel.app/src/components/segment/test/basic?ionic:theme=ionic --- .../components/segment-button/segment-button.ionic.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/components/segment-button/segment-button.ionic.scss b/core/src/components/segment-button/segment-button.ionic.scss index 95131ec4a1..75c67ab1cd 100644 --- a/core/src/components/segment-button/segment-button.ionic.scss +++ b/core/src/components/segment-button/segment-button.ionic.scss @@ -64,18 +64,18 @@ } // Segment Button: Checked +// All slot content should have the checked color even when it's not label or icon // -------------------------------------------------- -:host(.segment-button-checked) ::slotted(ion-label), -:host(.segment-button-checked) ::slotted(ion-icon) { +:host(.segment-button-checked) ::slotted(*) { color: var(--color-checked); } // Segment Button: Disabled +// All slot content should have the disabled color even when it's not label or icon // -------------------------------------------------- -:host(.segment-button-disabled) ::slotted(ion-label), -:host(.segment-button-disabled) ::slotted(ion-icon) { +:host(.segment-button-disabled) ::slotted(*) { color: var(--color-disabled); }