Browse Source

fix: uniformly set height and border on inputs (#43548)

pull/43657/head
AKing 1 year ago
committed by GitHub
parent
commit
8a4621c72d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      components/input-number/style/index.ts

8
components/input-number/style/index.ts

@ -55,8 +55,8 @@ const genInputNumberStyles: GenerateStyle<InputNumberToken> = (token: InputNumbe
colorTextDescription,
motionDurationMid,
colorPrimary,
controlHeight,
inputPaddingHorizontal,
inputPaddingVertical,
colorBgContainer,
colorTextDisabled,
borderRadiusSM,
@ -164,8 +164,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,
@ -320,6 +319,7 @@ const genInputNumberStyles: GenerateStyle<InputNumberToken> = (token: InputNumbe
const genAffixWrapperStyles: GenerateStyle<InputNumberToken> = (token: InputNumberToken) => {
const {
componentCls,
inputPaddingVertical,
inputPaddingHorizontal,
inputAffixPadding,
controlWidth,
@ -370,7 +370,7 @@ const genAffixWrapperStyles: GenerateStyle<InputNumberToken> = (token: InputNumb
},
[`input${componentCls}-input`]: {
padding: 0,
padding: `${inputPaddingVertical}px 0`,
},
'&::before': {

Loading…
Cancel
Save