diff options
author | Chongyi Zheng <harry@harryzheng.com> | 2022-12-13 06:06:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-13 19:06:23 +0800 |
commit | a95247b7dfb89d574605a768d96f1f1576b216ca (patch) | |
tree | 3998a603da9f3ac679bce727e0a5ea33112befdd /web_src | |
parent | 87c64f655a6085f23499156504e039c13da77b21 (diff) | |
download | gitea-a95247b7dfb89d574605a768d96f1f1576b216ca.tar.gz gitea-a95247b7dfb89d574605a768d96f1f1576b216ca.zip |
Fix autofilled text visibility in dark mode (#22088)
Fixes #22087
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/less/_base.less | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/web_src/less/_base.less b/web_src/less/_base.less index 022afcea92..697bc0ee74 100644 --- a/web_src/less/_base.less +++ b/web_src/less/_base.less @@ -1354,6 +1354,12 @@ a.ui.card:hover, 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; +} + .ui.loading.loading.input > i.icon svg { visibility: hidden; } |