mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(component): adjust autofill style (#4773)
This commit is contained in:
@@ -74,6 +74,14 @@ export const input = style({
|
|||||||
'&::placeholder': {
|
'&::placeholder': {
|
||||||
color: 'var(--affine-placeholder-color)',
|
color: 'var(--affine-placeholder-color)',
|
||||||
},
|
},
|
||||||
|
'&:autofill, &:-webkit-autofill, &:-internal-autofill-selected, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active':
|
||||||
|
{
|
||||||
|
// The reason for using ‘!important’ here is:
|
||||||
|
// The user agent style sheets of many browsers utilise !important in their :-webkit-autofill style declarations.
|
||||||
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/:autofill#:~:text=%2C%20254)-,!important,-%3B%0Abackground%2Dimage
|
||||||
|
backgroundColor: 'var(--affine-white-10) !important',
|
||||||
|
['-webkit-box-shadow' as string]: 'none !important',
|
||||||
|
},
|
||||||
'&:disabled': {
|
'&:disabled': {
|
||||||
color: 'var(--affine-text-disable-color)',
|
color: 'var(--affine-text-disable-color)',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user