Skip to content

Commit

Permalink
feat(rtl): add segment rtl support (#11215)
Browse files Browse the repository at this point in the history
* fix(rtl): add segment rtl support

* fix(segments): remove border left for first item rtl
  • Loading branch information
AmitMY authored and brandyscarney committed Apr 14, 2017
1 parent 6cd719f commit dd0b293
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/components/segment/segment.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,23 @@ $segment-button-ios-toolbar-icon-line-height: 2.4rem !default;
}
}

[dir="rtl"] .segment-ios .segment-button {
&:first-of-type {
margin-left: 0;

border-left-width: 0;
border-radius: 0 $segment-button-ios-border-radius $segment-button-ios-border-radius 0;
}

&:last-of-type {
margin-right: 0;

border-left-width: $segment-button-ios-border-width;
border-radius: $segment-button-ios-border-radius 0 0 $segment-button-ios-border-radius;
}
}


.segment-ios.segment-disabled {
opacity: .4;

Expand Down

0 comments on commit dd0b293

Please sign in to comment.