Skip to content

Commit

Permalink
fix: uniformly set height and border on inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
bbb169 committed Jul 19, 2023
1 parent 3f92966 commit 846fb6c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/input-number/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ const genInputNumberStyles: GenerateStyle<InputNumberToken> = (token: InputNumbe
colorTextDescription,
motionDurationMid,
colorPrimary,
controlHeight,
inputPaddingHorizontal,
inputPaddingVertical,
colorBgContainer,
colorTextDisabled,
borderRadiusSM,
Expand Down Expand Up @@ -147,8 +147,7 @@ const genInputNumberStyles: GenerateStyle<InputNumberToken> = (token: InputNumbe
'&-input': {
...resetComponent(token),
width: '100%',
height: controlHeight - 2 * lineWidth,
padding: `0 ${inputPaddingHorizontal}px`,
padding: `${inputPaddingVertical}px ${inputPaddingHorizontal}px`,
textAlign: 'start',
backgroundColor: 'transparent',
border: 0,
Expand Down

0 comments on commit 846fb6c

Please sign in to comment.