From 522e652e8dcb2225c8228d4a313d4652ab525692 Mon Sep 17 00:00:00 2001
From: banaanihillo
Date: Tue, 23 Jul 2024 15:37:19 +0000
Subject: [PATCH] [accessibility] Add keyboard support for test actions (#4490)
- Existing gear icon keyup handler fixed:
moved the handler onto its descendant button,
to prevent it from incorrectly firing on the check-box elements
- Check-box elements: keyup elements for space and enter added,
as well as tabindex elements to make them able to gain focus
To test the check boxes:
- Set up an action, and visit the action's job page
- Navigate onto the job container (via Tab et al.)
- Use the gear icon with Space or Enter
- Tick the check-box items with Space or Enter
To test the elements beside the chevron icons:
- Navigate onto the element via Tab et al.
- Open/close them via Space or Enter
I have not had a chance to test the latter fix (https://codeberg.org/forgejo/forgejo/issues/4476#issuecomment-2092312) myself yet; feel free to reject this one in case the latter fix does not work as it should, and I will break this up into two separate pull requests.
## Draft release notes
- User Interface bug fixes
- [PR](https://codeberg.org/forgejo/forgejo/pulls/4490): [accessibility] Add keyboard support for test actions
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4490
Reviewed-by: Earl Warren
Co-authored-by: banaanihillo
Co-committed-by: banaanihillo
---
web_src/js/components/RepoActionView.vue | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/web_src/js/components/RepoActionView.vue b/web_src/js/components/RepoActionView.vue
index 4f2af3ac6d..c807c7daf6 100644
--- a/web_src/js/components/RepoActionView.vue
+++ b/web_src/js/components/RepoActionView.vue
@@ -464,20 +464,20 @@ export function initRepositoryActionView() {