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: 🤔 safari anchor behaviour on footnotes #1819

Open
9 tasks
paulovareiro29 opened this issue Jan 31, 2025 · 0 comments
Open
9 tasks

fix: 🤔 safari anchor behaviour on footnotes #1819

paulovareiro29 opened this issue Jan 31, 2025 · 0 comments
Assignees

Comments

@paulovareiro29
Copy link
Contributor

Current behavior

When implementing jump between footnotes a different behaviour was found on Safari.

When an anchor is clicked and the anchor destination is focused, safari also attributes the :focus-visible selector, which causes the footnote marker to be highlighted with the focus outline.

Expected behavior

Safari should behave the same as other browsers. When clicking on a reference, it should not add the focus outline on the destination footnote marker.

Steps to reproduce

  1. Open footnotes template
  2. Click on a marker on the footnotes
  3. Marker on text should be highlighted. (On safari it is also outlined)

Technical Information

Research how to fix this issue is needed, since this is specific browser behaviour and, since footnotes is only CSS, we cannot control using javascript.

DoR

  • Item has business value
  • Item has been estimated by the team
  • Item is clear and well-defined
  • Item dependencies have been identified

DoD

  • Documentation has been created/updated (if applicable)
  • Migration Guide has been created/updated (if applicable)
  • Relevant E2E tests (Features, A11y, Bug fixes) are created/updated
  • Relevant stories (Features, A11y) are created/updated
  • Implementation works successfully on feature branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants