gitea/web_src/js/features
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
..
admin Introduce eslint-plugin-no-jquery/no-event-shorthand (#24198) 2023-04-20 05:28:27 -04:00
comp Support markdown editor for issue template (#24400) 2023-05-08 22:22:52 +00:00
captcha.js
citation.js Introduce eslint-plugin-no-jquery/no-event-shorthand (#24198) 2023-04-20 05:28:27 -04:00
clipboard.js
codeeditor.js Improve "goto issue by number" button (#24577) 2023-05-10 15:50:58 +00:00
colorpicker.js
common-global.js Improve accessibility when (re-)viewing files (#24817) 2023-05-21 20:47:41 +00:00
common-issue-list.js Improve "goto issue by number" button (#24577) 2023-05-10 15:50:58 +00:00
common-issue-list.test.js Improve "goto issue by number" button (#24577) 2023-05-10 15:50:58 +00:00
common-organization.js
contextpopup.js
copycontent.js Add two eslint plugins (#24776) 2023-05-18 09:14:31 +08:00
dropzone.js
emoji.js
eventsource.sharedworker.js
file-fold.js
heatmap.js Localize activity heatmap (except tooltip) (#24131) 2023-04-17 14:26:01 -04:00
imagediff.js
install.js
notification.js
org-team.js Add status indicator on main home screen for each repo (#24638) 2023-05-13 21:59:01 +00:00
pull-view-file.js Improve accessibility when (re-)viewing files (#24817) 2023-05-21 20:47:41 +00:00
repo-branch.js Display warning when user try to rename default branch (#24512) 2023-05-04 22:54:38 +00:00
repo-code.js Improve accessibility when (re-)viewing files (#24817) 2023-05-21 20:47:41 +00:00
repo-code.test.js
repo-commit.js
repo-common.js Introduce eslint-plugin-no-jquery/no-event-shorthand (#24198) 2023-04-20 05:28:27 -04:00
repo-diff-filetree.js
repo-diff.js Improve accessibility when (re-)viewing files (#24817) 2023-05-21 20:47:41 +00:00
repo-editor.js
repo-findfile.js
repo-findfile.test.js
repo-graph.js
repo-home.js
repo-issue-content.js
repo-issue-list.js Improve issue list filter (#24425) 2023-04-30 11:51:20 -04:00
repo-issue-pr-form.js
repo-issue.js Improve accessibility when (re-)viewing files (#24817) 2023-05-21 20:47:41 +00:00
repo-legacy.js Support markdown editor for issue template (#24400) 2023-05-08 22:22:52 +00:00
repo-migrate.js Make repo migration cancelable and fix various bugs (#24605) 2023-05-11 08:25:46 +00:00
repo-migration.js
repo-projects.js Add two eslint plugins (#24776) 2023-05-18 09:14:31 +08:00
repo-release.js Update JS dependencies, add new eslint rules (#24597) 2023-05-09 02:35:49 +00:00
repo-settings.js Support for status check pattern (#24633) 2023-05-17 16:11:13 +08:00
repo-template.js Add status indicator on main home screen for each repo (#24638) 2023-05-13 21:59:01 +00:00
repo-unicode-escape.js Improve accessibility when (re-)viewing files (#24817) 2023-05-21 20:47:41 +00:00
repo-wiki.js Fix EasyMDE toolbar (#24489) 2023-05-03 01:23:39 -04:00
serviceworker.js
sshkey-helper.js
stopwatch.js
tablesort.js
tribute.js
user-auth-webauthn.js
user-auth.js Fix OAuth loading state (#24788) 2023-05-18 11:50:11 +00:00
user-settings.js