mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
feat(segment): adds global variable for targeting segment in toolbar (#16344)
adds the following variables ``` --ion-toolbar-color-unchecked --ion-toolbar-color-checked ```
This commit is contained in:
@ -26,6 +26,16 @@
|
||||
color: #{current-color(base)};
|
||||
}
|
||||
|
||||
|
||||
// Segment: Default Toolbar
|
||||
// --------------------------------------------------
|
||||
|
||||
:host-context(ion-toolbar):not(.ion-color)::slotted(ion-segment-button) {
|
||||
--color: #{var(--ion-toolbar-color-unchecked, $segment-button-md-text-color)};
|
||||
--color-checked: #{var(--ion-toolbar-color-checked, $segment-button-md-text-color-checked)};
|
||||
}
|
||||
|
||||
|
||||
// Segment: Toolbar Color
|
||||
// --------------------------------------------------
|
||||
|
||||
|
Reference in New Issue
Block a user