summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-06-29 18:53:43 -0400
committerGitHub <noreply@github.com>2023-06-29 22:53:43 +0000
commit0b6f7fb60709a499fe4f5d69ff77ed8337e05b8e (patch)
tree1c5cda7179c018ddb60a8459e898dd5a82795c93 /templates
parentc27a3af728775ccb23bd0c56bc8467b6db33c1af (diff)
downloadgitea-0b6f7fb60709a499fe4f5d69ff77ed8337e05b8e.tar.gz
gitea-0b6f7fb60709a499fe4f5d69ff77ed8337e05b8e.zip
read-only checkboxes don't appear and don't entirely act the way one might expect (#25573) (#25602)
Backport #25573 by @saegl5 This pull request fades read-only checkboxes and checkmark, and it makes the checkboxes act more read-only/disabled by not changing the border-color when clicked. Examples using light mode: | Before | After | | - | - | | ![Kapture 2023-06-28 at 00 20 45](https://github.com/go-gitea/gitea/assets/63764270/0899fd5c-18a9-4290-9ba9-d3cf71033cf8) | ![Kapture 2023-06-28 at 00 23 12](https://github.com/go-gitea/gitea/assets/63764270/0db9be14-e16c-42ed-8fb1-999928fd1d25) | | ![Kapture 2023-06-28 at 00 25 22](https://github.com/go-gitea/gitea/assets/63764270/65c6c380-b928-4e6c-b403-3655d3565896) | ![Kapture 2023-06-28 at 00 27 28](https://github.com/go-gitea/gitea/assets/63764270/d8c2a019-e07c-43a1-a7fa-93c0d4e01900) | | | read-only checkboxes and checkmark are faded<br>and the checkboxes act more read-only/disabled | Fixes/Closes/Resolves #25076 Co-authored-by: Ed Silkworth <ed.silkworth@icloud.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/pulls/fork.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/pulls/fork.tmpl b/templates/repo/pulls/fork.tmpl
index 34adc7b2f1..525858c6aa 100644
--- a/templates/repo/pulls/fork.tmpl
+++ b/templates/repo/pulls/fork.tmpl
@@ -45,8 +45,8 @@
</div>
<div class="inline field">
<label>{{.locale.Tr "repo.visibility"}}</label>
- <div class="ui read-only checkbox">
- <input type="checkbox" {{if .IsPrivate}}checked{{end}}>
+ <div class="ui disabled checkbox">
+ <input type="checkbox" disabled {{if .IsPrivate}}checked{{end}}>
<label>{{.locale.Tr "repo.visibility_helper" | Safe}}</label>
</div>
<span class="help">{{.locale.Tr "repo.fork_visibility_helper"}}</span>