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:
Brandy Carney
2018-11-16 13:19:01 -05:00
committed by GitHub
parent ac3e065b3e
commit 10971cc3ca
8 changed files with 54 additions and 3 deletions

View File

@ -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
// --------------------------------------------------