feat(rtl): add segment rtl support (#11215)

* fix(rtl): add segment rtl support

* fix(segments): remove border left for first item rtl
This commit is contained in:
Amit Moryossef
2017-04-14 17:54:30 +03:00
committed by Brandy Carney
parent 6cd719f023
commit dd0b29388e

View File

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