Repository navigation
SECFOO-22: Make clickable table rows keyboard accessible - #36
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-hrefpattern (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.jsgives every.run-row[data-href]tabindex=0and opens it on Enter. Enter on a link or button inside the row keeps that element's own behaviour.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.tables.css(bothdesign-system/copies, kept identical); the global:focus-visiblebox-shadow doesn't render reliably on<tr>.test_keyboard_access.py: every run-row hasdata-href, and the script still sets up focus and Enter handling.Testing
pytest tests: 814 passed/assessments/<id>Screenshot*
After (row focused with Tab):

🤖 Generated with Claude Code