Skip to content

Commit 802f1bd

Browse files
saegl5silverwindwxiaoguang
authored andcommitted
read-only checkboxes don't appear and don't entirely act the way one might expect (go-gitea#25573)
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 go-gitea#25076 --------- Co-authored-by: silverwind <[email protected]> Co-authored-by: wxiaoguang <[email protected]>
1 parent c27a3af commit 802f1bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/repo/pulls/fork.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
</div>
4646
<div class="inline field">
4747
<label>{{.locale.Tr "repo.visibility"}}</label>
48-
<div class="ui read-only checkbox">
49-
<input type="checkbox" {{if .IsPrivate}}checked{{end}}>
48+
<div class="ui disabled checkbox">
49+
<input type="checkbox" disabled {{if .IsPrivate}}checked{{end}}>
5050
<label>{{.locale.Tr "repo.visibility_helper" | Safe}}</label>
5151
</div>
5252
<span class="help">{{.locale.Tr "repo.fork_visibility_helper"}}</span>

0 commit comments

Comments
 (0)