Skip to content

Commit

Permalink
fix: transition
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyunhe committed Apr 14, 2024
1 parent bcccaf2 commit cb8230d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/collapse/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@ export const genBaseStyle: GenerateStyle<CollapseToken> = (token) => {
[`${componentCls}-arrow`]: {
...resetIcon(),
fontSize: fontSizeIcon,
// when `transform: rotate()` is applied to icon's root element
transition: `transform ${motionDurationSlow}`,
// when `transform: rotate()` is applied to icon's child element
svg: {
transition: `transform ${motionDurationSlow}`,
},
},

// >>>>> Text
Expand Down

0 comments on commit cb8230d

Please sign in to comment.