diff --git a/components/back-top/style/index.less b/components/back-top/style/index.less index f630d5f655..943c483ec6 100644 --- a/components/back-top/style/index.less +++ b/components/back-top/style/index.less @@ -17,6 +17,7 @@ &-rtl { right: auto; left: 100px; + direction: rtl; } &-content { diff --git a/components/cascader/style/rtl.less b/components/cascader/style/rtl.less index 9c206339a0..f249379fbd 100644 --- a/components/cascader/style/rtl.less +++ b/components/cascader/style/rtl.less @@ -16,6 +16,10 @@ } &-picker { + &-rtl { + direction: rtl; + } + &-label { .@{picker-rtl-cls} & { padding: 0 @control-padding-horizontal 0 20px; diff --git a/components/checkbox/Checkbox.tsx b/components/checkbox/Checkbox.tsx index eebe95c873..6628a77216 100644 --- a/components/checkbox/Checkbox.tsx +++ b/components/checkbox/Checkbox.tsx @@ -92,7 +92,7 @@ class Checkbox extends React.PureComponent { this.rcCheckbox.blur(); } - renderCheckbox = ({ getPrefixCls }: ConfigConsumerProps) => { + renderCheckbox = ({ getPrefixCls, direction }: ConfigConsumerProps) => { const { props, context } = this; const { prefixCls: customizePrefixCls, @@ -120,6 +120,7 @@ class Checkbox extends React.PureComponent { } const classString = classNames(className, { [`${prefixCls}-wrapper`]: true, + [`${prefixCls}-rtl`]: direction === 'rtl', [`${prefixCls}-wrapper-checked`]: checkboxProps.checked, [`${prefixCls}-wrapper-disabled`]: checkboxProps.disabled, }); diff --git a/components/checkbox/__tests__/__snapshots__/checkbox.test.js.snap b/components/checkbox/__tests__/__snapshots__/checkbox.test.js.snap index 8e6d96fb87..ae18e74176 100644 --- a/components/checkbox/__tests__/__snapshots__/checkbox.test.js.snap +++ b/components/checkbox/__tests__/__snapshots__/checkbox.test.js.snap @@ -2,7 +2,7 @@ exports[`Checkbox rtl render component should be rendered correctly in RTL direction 1`] = `