Skip to content

fix: make project toggle switches keyboard accessible (closes #1534)#1535

Open
moha0993 wants to merge 2 commits into
DependencyTrack:masterfrom
moha0993:fix/issue-320-keyboard-switch
Open

fix: make project toggle switches keyboard accessible (closes #1534)#1535
moha0993 wants to merge 2 commits into
DependencyTrack:masterfrom
moha0993:fix/issue-320-keyboard-switch

Conversation

@moha0993
Copy link
Copy Markdown

@moha0993 moha0993 commented May 21, 2026

Description

Fixes a keyboard accessibility issue affecting toggle switches on the Projects page. The switches were not reachable via keyboard and could not be toggled using Enter or Space.

Addressed Issue

Closes #1534

Additional Details

The fix enhances accessibility by making the existing components keyboard operable:

  • Added tabindex="0" to make switches focusable
  • Added role="switch" for accessibility semantics
  • Added key handlers for Enter and Space to enable keyboard interaction

Verified that:

  • Switches can be focused using Tab

  • Switches toggle using Enter and Space

  • No UI regressions (search bar, table, and layout remain unchanged)

  • I have read and understand the contributing guidelines

  • This PR introduces new or alters existing behavior, and I have updated the documentation accordingly

…ncyTrack#1534)

Signed-off-by: Ubuntu <ahmedm@ahmed-DT.vojtk5sve0setetrc1omp3vl0h.ux.internal.cloudapp.net>
@owasp-dt-bot
Copy link
Copy Markdown

owasp-dt-bot commented May 21, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

…ependencyTrack#1534)

Signed-off-by: Ubuntu <ahmedm@ahmed-DT.vojtk5sve0setetrc1omp3vl0h.ux.internal.cloudapp.net>
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.

Toggle switches not keyboard accessible on Projects page

2 participants