diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2021-10-19 06:08:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-19 01:08:41 +0300 |
commit | 4822eed99dc20742fcea5c31c9a9a192188a53e0 (patch) | |
tree | 119697fb3ba115a7c098790320bb822b43a06654 /web_src/less | |
parent | c59afa752d9746af6d870635ce3baaaff67b8027 (diff) | |
download | gitea-4822eed99dc20742fcea5c31c9a9a192188a53e0.tar.gz gitea-4822eed99dc20742fcea5c31c9a9a192188a53e0.zip |
Disable form autofill (#17291)
]* fix aria-hidden and tabindex
* use {{template "base/disable_form_autofill"}} instead of {{DisableFormAutofill}}
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'web_src/less')
-rw-r--r-- | web_src/less/_base.less | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/web_src/less/_base.less b/web_src/less/_base.less index 4e2782a4c8..59585b39e4 100644 --- a/web_src/less/_base.less +++ b/web_src/less/_base.less @@ -962,10 +962,13 @@ a.ui.card:hover, } .form { - .fake { - display: none !important; + .autofill-dummy { + position: absolute; + width: 1px; + height: 1px; + overflow: hidden; + z-index: -10000; } - .sub.field { margin-left: 25px; } |