mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(segment): add activated class directly to segment button (#20400)
this gets around a bug with Safari where the ::slotted css selector was not working properly
This commit is contained in:
@ -140,6 +140,10 @@
|
||||
// Segment: States
|
||||
// --------------------------------------------------
|
||||
|
||||
:host(.segment-button-activated) {
|
||||
--indicator-transform: scale(0.95);
|
||||
}
|
||||
|
||||
:host(.ion-focused) .button-native {
|
||||
opacity: $segment-button-ios-opacity-focused;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user