Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(core): unexpected autofill style in dark mode (#7130)

JimmFlyd43fcdcdd651
diff --git a/packages/frontend/component/src/ui/input/style.css.ts b/packages/frontend/component/src/ui/input/style.css.ts
index 4ea8ff5804..aed3cff667 100644
--- a/packages/frontend/component/src/ui/input/style.css.ts
+++ b/packages/frontend/component/src/ui/input/style.css.ts
@@ -69,5 +69,8 @@ export const input = style({
'&:disabled': {
color: cssVar('textDisableColor'),
},
+ '&:-webkit-autofill': {
+ WebkitBoxShadow: `0 0 0 1000px ${cssVar('white')} inset`,
+ },
},
});