Skip to content

Commit 0f48942

Browse files
committed
Completely style the webkit autofill
1 parent baeb251 commit 0f48942

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

web_src/css/base.css

+12-4
Original file line numberDiff line numberDiff line change
@@ -872,10 +872,18 @@ img.ui.avatar,
872872
border-color: var(--color-error-border) !important;
873873
}
874874

875-
/* A fix for text visibility issue in Chrome autofill in dark mode. */
876-
/* It's a problem from Formatic UI, and this rule overrides it. */
877-
.ui.form .field.field input:-webkit-autofill {
878-
-webkit-text-fill-color: var(--color-black) !important;
875+
input:-webkit-autofill,
876+
input:-webkit-autofill:focus,
877+
input:-webkit-autofill:hover,
878+
input:-webkit-autofill:active,
879+
.ui.form .field.field input:-webkit-autofill,
880+
.ui.form .field.field input:-webkit-autofill:focus,
881+
.ui.form .field.field input:-webkit-autofill:hover,
882+
.ui.form .field.field input:-webkit-autofill:active {
883+
-webkit-background-clip: text;
884+
-webkit-text-fill-color: var(--color-text);
885+
box-shadow: 0 0 0 100px var(--color-primary-light-6) inset !important;
886+
border-color: var(--color-primary-light-4) !important;
879887
}
880888

881889
.ui.form .field.muted {

0 commit comments

Comments
 (0)