GSA / GSA/touchpoints

Navigating to button using skip links breaks accessibility affordances

Open
#1,189 0 comments 1 reaction 0 assignees View on GitHub
accessibility FY26
Dominant language
JavaScript
Stars
67
Forks
37
Avg merge
2d 12h
Merged PRs (30d)
5

Description

When you click the skip link, in addition to focusing the 'feedback' button, it removes visual focus styles (the outline is set to 0px). The user has no visual indicator that the feedback button is currently focused. And after tabbing away, the button is removed from tab order (sets tabindex=-1) and is no longer accessible via keyboard navigation.

Tabbing directly to the button or using a mouse click works as expected and keeps the button focusable and keeps focus styles intact.

![skiplink-to-button](https://github.com/GSA/touchpoints/assets/11020538/1fc19fb2-2bf4-4b17-a962-aecf5c28d0de)

Screenshot of markup before using skip link to focus button:
![before-skiplink](https://github.com/GSA/touchpoints/assets/11020538/b13c7b45-67fb-4d8b-b8f9-05905dc719da)

Screenshot of markup after using skip link to focus button:
![after-skiplink](https://github.com/GSA/touchpoints/assets/11020538/7f3dc74d-97ab-4933-9055-2f9f14bed31a)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.