Skip to content

Commit

Permalink
fix(segment): add the active background color to the colorized segmen…
Browse files Browse the repository at this point in the history
…ts and remove activated css

closes #5308
  • Loading branch information
brandyscarney committed Feb 12, 2016
1 parent 5f254f2 commit df9a4df
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions ionic/components/segment/segment.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ $segment-button-ios-toolbar-button-max-width: 100px !default;
background-color: rgba($segment-button-ios-bg-color-activated, $segment-button-ios-hover-opacity);
transition: $segment-button-ios-hover-transition;
}

&:active:not(.segment-activated) {
background-color: rgba($segment-button-ios-bg-color-activated, $segment-button-ios-active-opacity);
transition: $segment-button-ios-active-transition;
background-color: rgba($segment-button-ios-bg-color-activated, $segment-button-ios-active-opacity);
transition: $segment-button-ios-active-transition;
}

&:first-of-type {
Expand Down Expand Up @@ -100,7 +100,10 @@ $segment-button-ios-toolbar-button-max-width: 100px !default;
background-color: rgba($color-value, $segment-button-ios-hover-opacity);
}

&.activated,
&:active:not(.segment-activated) {
background-color: rgba($color-value, $segment-button-ios-active-opacity);
}

&.segment-activated {
color: inverse($color-value);
background-color: $color-value;
Expand All @@ -119,4 +122,4 @@ $segment-button-ios-toolbar-button-max-width: 100px !default;
.toolbar[#{$color-name}] .segment-button.segment-activated {
color: $color-value;
}
}
}

0 comments on commit df9a4df

Please sign in to comment.