Browse Source

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

pull/40460/head
MadCcc 2 years ago
committed by GitHub
parent
commit
217d1a1e03
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      components/input/style/index.ts

6
components/input/style/index.ts

@ -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',
},
},
};
};

Loading…
Cancel
Save