Skip to content

Commit 2a0e7d1

Browse files
fix(segment-button): add color to slotted children for improved styling consistency
1 parent abb9506 commit 2a0e7d1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

core/src/components/segment-button/segment-button.ionic.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,15 @@
4444
gap: globals.$ion-space-100;
4545
}
4646

47+
::slotted(*) {
48+
color: var(--color);
49+
}
50+
4751
// Segment Button Label
4852
// --------------------------------------------------
4953

5054
::slotted(ion-label) {
5155
@include globals.typography(globals.$ion-body-action-sm);
52-
53-
color: var(--color);
5456
}
5557

5658
// Segment Button Icon
@@ -59,8 +61,6 @@
5961
::slotted(ion-icon) {
6062
width: globals.$ion-scale-600;
6163
height: globals.$ion-scale-600;
62-
63-
color: var(--color);
6464
}
6565

6666
// Segment Button: Checked

0 commit comments

Comments
 (0)