Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(skip-link): identify as skip-link only if the link is offscreen #2079

Merged
merged 3 commits into from
Mar 6, 2020

Conversation

straker
Copy link
Contributor

@straker straker commented Mar 2, 2020

We had a few false positives with normal links (<a href="/#target"></a>) being identified as skip links. This changes the definition of a skip link to only include links which are offscreen.

Closes issue: #2069, #2055

Reviewer checks

Required fields, to be filled out by PR reviewer(s)

  • Follows the commit message policy, appropriate for next version
  • Code is reviewed for security

@straker straker requested a review from a team as a code owner March 2, 2020 21:30
lib/commons/dom/is-skip-link.js Outdated Show resolved Hide resolved
test/playground.html Outdated Show resolved Hide resolved
@straker straker merged commit ab5a011 into develop Mar 6, 2020
@straker straker deleted the skipLink branch March 6, 2020 16:56
straker added a commit that referenced this pull request Mar 6, 2020
…2079)

* fix(skip-link): identify as skip-link only if the link is offscreen

* fix region test

* revert changes, only check offscreen in skip-link
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