Skip to content

Commit

Permalink
Completely style the webkit autofill
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Mar 9, 2024
1 parent baeb251 commit 0f48942
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions web_src/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -872,10 +872,18 @@ img.ui.avatar,
border-color: var(--color-error-border) !important;
}

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

.ui.form .field.muted {
Expand Down

0 comments on commit 0f48942

Please sign in to comment.