Skip to content

Commit

Permalink
style: Segmented supports rtl styles (#35188)
Browse files Browse the repository at this point in the history
  • Loading branch information
vagusX committed Apr 23, 2022
1 parent 22c1021 commit 78eed85
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/segmented/style/index.less
Expand Up @@ -114,3 +114,5 @@
will-change: transform, width;
}
}

@import './rtl';
15 changes: 15 additions & 0 deletions 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;
}
}

0 comments on commit 78eed85

Please sign in to comment.