mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
segment.wp: display active style outside toolbar
In the iOS and Android styles the segment-activated class lives directly under segment-button. However in the Windows Phone version these styles live only under toolbar, causing the styles to not be applied properly if the ion-segment is used outside of a toolbar.
This commit is contained in:
@ -39,6 +39,11 @@ ion-segment {
|
||||
color: $segment-button-wp-text-color-activated;
|
||||
background-color: $segment-button-wp-background-color;
|
||||
opacity: $segment-button-wp-opacity;
|
||||
|
||||
.activated,
|
||||
.segment-activated {
|
||||
opacity: $segment-button-wp-opacity-activated;
|
||||
}
|
||||
|
||||
ion-icon {
|
||||
font-size: $segment-button-wp-icon-size;
|
||||
@ -51,12 +56,6 @@ ion-segment {
|
||||
ion-segment {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.segment-button.activated,
|
||||
.segment-button.segment-activated {
|
||||
opacity: $segment-button-wp-opacity-activated;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user