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

Focus anchor link targets #55

Merged
merged 18 commits into from
Apr 12, 2024
Merged

Focus anchor link targets #55

merged 18 commits into from
Apr 12, 2024

Conversation

daun
Copy link
Member

@daun daun commented Apr 12, 2024

Description

Also

  • Refactored focus and announcement methods into utility functions
  • Make them more testable and allow better minification :)

Checks

  • The PR is submitted to the master branch
  • The code was linted before pushing (npm run lint)
  • All tests are passing (npm run test)
  • New or updated tests are included
  • The documentation was updated as required

Notes

@daun daun requested a review from hirasso April 12, 2024 09:47
Copy link
Member

@hirasso hirasso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! As already mentioned in one of my inline comments, I have to rely on you regarding manual tests right now.

It's a shame that all your research in #44 didn't work out with screen readers. But it's great that we are landing on a robust solution!

README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
src/announcements.ts Show resolved Hide resolved
src/focus.ts Outdated Show resolved Hide resolved
@daun
Copy link
Member Author

daun commented Apr 12, 2024

Knowing exactly why something won't work is almost as good as getting it to work 🧃

@daun
Copy link
Member Author

daun commented Apr 12, 2024

Updated with your suggested changes. Feel free to approve now or whenever you get a chance to test this. Since we're not yet releasing anything, I'd opt for merging now so we can get started on the tests 🚀

Copy link
Member

@hirasso hirasso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bling

@daun daun merged commit 2e0120b into master Apr 12, 2024
@daun daun deleted the feature/focus-anchor-links branch April 12, 2024 16:21
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.

Feature: Move focus when handling same-page links
2 participants