Browse Source

fix: Collapse arraw position in rtl mode (#35587)

pull/35617/head
miracles1919 3 years ago
committed by GitHub
parent
commit
591224681d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      components/collapse/style/index.tsx

12
components/collapse/style/index.tsx

@ -33,7 +33,6 @@ export const genBaseStyle: GenerateStyle<CollapseToken> = token => {
colorTextDisabled,
lineHeight,
marginSM,
padding,
paddingSM,
fontSizeSM,
} = token;
@ -80,8 +79,6 @@ export const genBaseStyle: GenerateStyle<CollapseToken> = token => {
// FIXME
verticalAlign: '-1px',
[`${componentCls}-rtl &`]: {},
[`& svg`]: {
// FIXME
transition: 'transform 0.24s',
@ -120,12 +117,9 @@ export const genBaseStyle: GenerateStyle<CollapseToken> = token => {
paddingInlineEnd: collapseHeaderPaddingExtra,
[`${componentCls}-arrow`]: {
position: 'absolute',
top: '50%',
insetInlineEnd: padding,
insetInlineStart: 'auto',
margin: 0,
transform: 'translateY(-50%)',
svg: {
transform: 'rotate(180deg)',
},
},
},
},

Loading…
Cancel
Save