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): allow focusing without url navigation #704

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

samrichardsontylertech
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added/updated: Y
  • Docs have been added/updated: Y
  • Does this PR introduce a breaking change? N
  • I have linked any related GitHub issues to be closed when this PR is merged? N/A

Describe the new behavior?

This adds an alternative navigation method to the skip link for usage in contexts that don't allow navigation by URL fragment. When skip-url-change is set URL navigation is canceled and the target element is instead focused and scrolled into view via JavaScript.

@samrichardsontylertech samrichardsontylertech added enhancement New feature or request minor Increment the minor version when merged skip-release Preserve the current version when merged accessibility labels Oct 10, 2024
@samrichardsontylertech samrichardsontylertech requested a review from a team as a code owner October 10, 2024 20:36
Copy link

stackblitz bot commented Oct 10, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Ross-Blakeney
Ross-Blakeney previously approved these changes Oct 10, 2024
@DRiFTy17 DRiFTy17 merged commit f512ebb into main Oct 22, 2024
7 checks passed
@DRiFTy17 DRiFTy17 deleted the fix/skip-link-nav-alternative branch October 22, 2024 16:52
Copy link
Contributor

🚀 PR was released in v3.3.0 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility enhancement New feature or request minor Increment the minor version when merged released This issue/pull request has been released. skip-release Preserve the current version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants