Browse Source

style: `Segmented` supports rtl styles (#35188)

pull/35190/head
vagusX 3 years ago
committed by GitHub
parent
commit
78eed85cba
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/segmented/style/index.less
  2. 15
      components/segmented/style/rtl.less

2
components/segmented/style/index.less

@ -114,3 +114,5 @@
will-change: transform, width;
}
}
@import './rtl';

15
components/segmented/style/rtl.less

@ -0,0 +1,15 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@segmented-prefix-cls: ~'@{ant-prefix}-segmented';
.@{segmented-prefix-cls} {
&&-rtl {
direction: rtl;
}
&&-rtl &-item-icon {
margin-right: 0;
margin-left: 6px;
}
}
Loading…
Cancel
Save