Skip to content

Commit

Permalink
fix(Collapse): arrow selector (#48417)
Browse files Browse the repository at this point in the history
* fix(Collapse): arrow selector

* fix(Collapse): arrow selector

* fix: transition

---------

Co-authored-by: vagusX <vagusxl@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
  • Loading branch information
3 people committed Apr 16, 2024
1 parent 9a0e2ad commit 33ae55f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/collapse/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ 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}`,
},
Expand Down Expand Up @@ -231,7 +233,7 @@ export const genBaseStyle: GenerateStyle<CollapseToken> = (token) => {
const genArrowStyle: GenerateStyle<CollapseToken> = (token) => {
const { componentCls } = token;

const fixedSelector = `> ${componentCls}-item > ${componentCls}-header ${componentCls}-arrow svg`;
const fixedSelector = `> ${componentCls}-item > ${componentCls}-header ${componentCls}-arrow`;

return {
[`${componentCls}-rtl`]: {
Expand Down

0 comments on commit 33ae55f

Please sign in to comment.