mirror of
1
Fork 0
forgejo/templates/user
delvh e95b42e187
Improve accessibility when (re-)viewing files (#24817)
Visually, nothing should have changed.
Changes include
- Convert most `<a [no href]>` to `<button>` when (re-)viewing files:
- `<a [no href]>` are, by HTML definition, not a link and hence cannot
be focused
- `<a class="ui button">` can now be clicked (again?) using
<kbd>Enter</kbd>
- Previously, the installed keypress handler on `.ui.button` elements
disabled it for links somehow
- The `(un)escape file`, the `expand section` and the `expand/collapse
file` buttons can now be focused (and subsequently clicked using only
the keyboard)
- You can now press <kbd>Space</kbd> on a focused `View file` checkbox
to mark the file as viewed.
- previously, this was impossible as this checkbox listened on the wrong
event listener

The `add code comment` button has been left inaccessible for now as it
requires quite a bit of extra logic so that it is unhidden when it is
focused (you can otherwise focus it without seeing it as you are not
hovering on the corresponding line).

---------

Co-authored-by: silverwind <me@silverwind.io>
2023-05-21 20:47:41 +00:00
..
auth Fix OAuth loading state (#24788) 2023-05-18 11:50:11 +00:00
dashboard Remove background on user dashboard filter bar (#24779) 2023-05-18 09:27:29 +02:00
notification Rename ".button-link" to ".button-ghost" (#24670) 2023-05-12 14:58:44 +00:00
overview Add Gitea Profile Readmes (#23260) 2023-05-09 05:57:24 +00:00
settings Improve accessibility when (re-)viewing files (#24817) 2023-05-21 20:47:41 +00:00
code.tmpl Add main landmark to templates and adjust titles (#22670) 2023-02-01 22:56:10 +00:00
heatmap.tmpl Improve template helper (#24417) 2023-04-29 08:02:29 -04:00
profile.tmpl Improve avatar uploading / resizing / compressing, remove Fomantic card module (#24653) 2023-05-13 20:59:11 +02:00
project.tmpl Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00