fix: Input should hide webkit cancel button (#40457)

This commit is contained in:
MadCcc 2023-01-30 17:31:10 +08:00 committed by GitHub
parent 550334ff92
commit 217d1a1e03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -317,7 +317,6 @@ export const genInputGroupStyle = (token: InputToken): CSSObject => {
},
[`${componentCls}`]: {
float: 'inline-start',
width: '100%',
marginBottom: 0,
textAlign: 'inherit',
@ -528,6 +527,11 @@ const genInputStyle: GenerateStyle<InputToken> = (token: InputToken) => {
paddingBottom: colorSmallPadding,
},
},
'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':
{
'-webkit-appearance': 'none',
},
},
};
};