Skip to content

SECFOO-22: Make clickable table rows keyboard accessible - #36

Merged
vsn411 merged 1 commit into
secfoo-com:mainfrom
AmirNCI:fix/secfoo-22-keyboard-rows
Nov 1, 2026
Merged

vsn411 merged 1 commit into
secfoo-com:mainfrom
AmirNCI:fix/secfoo-22-keyboard-rows

Conversation

@AmirNCI

@AmirNCI AmirNCI commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

What does this change, and why?

Part of SECFOO-22 (Initiative 3: Dashboard usability), accessibility item. Independent of the other SECFOO-22 PRs, with no conflicts with #34.

Rows using the .run-row / data-href pattern (18 rows across 16 templates) could only be opened with a mouse. A <tr> isn't focusable, so Tab skipped every row. On the Assessments list focus went straight to the row's delete button, so the only row action a keyboard user could reach was deleting it.

  • static/js/interactive.js gives every .run-row[data-href] tabindex=0 and opens it on Enter. Enter on a link or button inside the row keeps that element's own behaviour.
  • It's done in the script rather than as tabindex="0" in each template: the rows only work through this script anyway, and any new row is covered automatically. That includes the rows SECFOO-69: Dashboard UI improvements inspired by AGNT.gg #34 adds, and it avoids touching the same <tr> lines SECFOO-69: Dashboard UI improvements inspired by AGNT.gg #34 edits.
  • Visible focus outline for rows in tables.css (both design-system/ copies, kept identical); the global :focus-visible box-shadow doesn't render reliably on <tr>.
  • test_keyboard_access.py: every run-row has data-href, and the script still sets up focus and Enter handling.

Testing

Screenshot*

After (row focused with Tab):
B-after-row-keyboard-focus

🤖 Generated with Claude Code

Rows using the .run-row/data-href pattern (18 rows across 16 templates)
could only be opened with a mouse: a <tr> isn't focusable, so Tab
skipped every row and went straight to the next control -- on the
Assessments list, the row's delete button.

- static/js/interactive.js gives every .run-row[data-href] tabindex=0
  and opens it on Enter (Enter on a link/button inside the row keeps
  that element's own behavior). Done in the script rather than per
  template: the rows only work through this script anyway, and new
  rows are covered automatically.
- Visible focus outline for rows in tables.css (both design-system/
  and the packaged static copy); the global :focus-visible box-shadow
  doesn't render reliably on <tr>.
- test_keyboard_access.py: every run-row has data-href, and the script
  still sets up focus + Enter.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vsn411
vsn411 merged commit 2cfd623 into secfoo-com:main Nov 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants