fix: search component inconsistent height of button and input (#50926)

Co-authored-by: nathanlao11 <nathanl@emonster.ca>
Co-authored-by: afc163 <afc163@gmail.com>
This commit is contained in:
NathanLao 2024-09-28 05:12:24 -07:00 committed by GitHub
parent bcdd10b72c
commit f6f126b5f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -659,6 +659,7 @@ const genSearchInputStyle: GenerateStyle<InputToken> = (token: InputToken) => {
},
[`${componentCls}-affix-wrapper`]: {
height: token.controlHeight,
borderRadius: 0,
},
@ -713,12 +714,16 @@ const genSearchInputStyle: GenerateStyle<InputToken> = (token: InputToken) => {
},
},
[`&-large ${searchPrefixCls}-button`]: {
height: token.controlHeightLG,
'&-large': {
[`${componentCls}-affix-wrapper, ${searchPrefixCls}-button`]: {
height: token.controlHeightLG,
},
},
[`&-small ${searchPrefixCls}-button`]: {
height: token.controlHeightSM,
'&-small': {
[`${componentCls}-affix-wrapper, ${searchPrefixCls}-button`]: {
height: token.controlHeightSM,
},
},
'&-rtl': {