0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-02 14:05:07 +01:00
gitea/templates/repo/issue
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
..
fields
labels Improve accessibility when (re-)viewing files (#24817) 2023-05-21 20:47:41 +00:00
milestone
view_content Clean up various avatar dimensions (#24701) 2023-05-14 14:15:59 +00:00
branch_selector_field.tmpl
choose.tmpl
comment_tab.tmpl
label_precolors.tmpl
labels.tmpl
list.tmpl Support no label/assignee filter and batch clearing labels/assignees (#24707) 2023-05-17 17:21:35 +08:00
milestone_issues.tmpl
milestone_new.tmpl
milestones.tmpl
navbar.tmpl
new_form.tmpl
new.tmpl
openclose.tmpl
search.tmpl
view_content.tmpl Clean up various avatar dimensions (#24701) 2023-05-14 14:15:59 +00:00
view_title.tmpl Improve accessibility when (re-)viewing files (#24817) 2023-05-21 20:47:41 +00:00
view.tmpl