Skip to content

Commit 19f0aea

Browse files
authored
fix: layout-sider and menu transition style(#6637) (#6640)
1 parent 6f032c9 commit 19f0aea

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

components/layout/style/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const genLayoutStyle: GenerateStyle<LayoutToken, CSSObject> = token => {
9999
// fix firefox can't set width smaller than content on flex item
100100
minWidth: 0,
101101
background: colorBgHeader,
102-
transition: `all ${motionDurationMid}`,
102+
transition: `all ${motionDurationMid}, background 0s`,
103103

104104
'&-children': {
105105
height: '100%',

components/menu/style/index.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,7 @@ const getBaseStyle: GenerateStyle<MenuToken> = token => {
248248
lineHeight: 0, // Fix display inline-block gap
249249
listStyle: 'none',
250250
outline: 'none',
251-
transition: [
252-
`background ${motionDurationSlow}`,
253-
// Magic cubic here but smooth transition
254-
`width ${motionDurationSlow} cubic-bezier(0.2, 0, 0, 1) 0s`,
255-
].join(','),
251+
transition: `width ${motionDurationSlow} cubic-bezier(0.2, 0, 0, 1) 0s`,
256252

257253
[`ul, ol`]: {
258254
margin: 0,

0 commit comments

Comments
 (0)