You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/templates
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>
1 year ago
..
admin Improve queue & process & stacktrace (#24636) 1 year ago
api/packages/pypi Remove incorrect HTML self close tag (#23748) 1 year ago
base Remove meta charset from HTML5 documents (#24744) 1 year ago
code Use data-tooltip-content for tippy tooltip (#23649) 1 year ago
custom Add footer extra links template (#9576) 5 years ago
devtest Improve button-ghost, remove tertiary button (#24692) 1 year ago
explore Change `join_on` translation to `joined_on` and include placeholder for the date (#24550) 1 year ago
mail Remove incorrect HTML self close tag (#23748) 1 year ago
org Remove svg.svg class, restore .rss-icon (#24667) 1 year ago
package Add Go package registry (#24687) 1 year ago
projects Update pin and add pin-slash (#24669) 1 year ago
repo Improve accessibility when (re-)viewing files (#24817) 1 year ago
shared Clean up various avatar dimensions (#24701) 1 year ago
status Remove meta charset from HTML5 documents (#24744) 1 year ago
swagger Remove meta charset from HTML5 documents (#24744) 1 year ago
user Improve accessibility when (re-)viewing files (#24817) 1 year ago
home.tmpl Improve home page template, fix Sort dropdown menu flash (#23856) 1 year ago
install.tmpl Unification of registration fields order (#24737) 1 year ago
post-install.tmpl Remove incorrect HTML self close tag (#23748) 1 year ago