Skip to content

Commit

Permalink
fix: fix steps inner style error (ant-design#48464)
Browse files Browse the repository at this point in the history
* fix: fix steps style error

* fix: add unit
  • Loading branch information
li-jia-nan authored Apr 15, 2024
1 parent 9ba577f commit 47eb27b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions components/steps/style/progress.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { CSSObject } from '@ant-design/cssinjs';
import { unit } from '@ant-design/cssinjs';

import type { StepsToken } from '.';
import type { GenerateStyle } from '../../theme/internal';
Expand Down Expand Up @@ -67,8 +68,8 @@ const genStepsProgressStyle: GenerateStyle<StepsToken, CSSObject> = (token) => {
transform: 'translate(-50%, -50%)',

'&-inner': {
width: `${progressSize} !important`,
height: `${progressSize} !important`,
width: `${unit(progressSize)} !important`,
height: `${unit(progressSize)} !important`,
},
},
},
Expand All @@ -80,8 +81,8 @@ const genStepsProgressStyle: GenerateStyle<StepsToken, CSSObject> = (token) => {
},

[`${componentCls}-item-icon ${antCls}-progress-inner`]: {
width: `${progressSizeSM} !important`,
height: `${progressSizeSM} !important`,
width: `${unit(progressSizeSM)} !important`,
height: `${unit(progressSizeSM)} !important`,
},
},
},
Expand Down

0 comments on commit 47eb27b

Please sign in to comment.