Skip to content

Fix/layer options tabbing #315

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

Merged
merged 5 commits into from
Apr 14, 2025
Merged

Fix/layer options tabbing #315

merged 5 commits into from
Apr 14, 2025

Conversation

dopenguin
Copy link
Member

Summary

When opening layer options via keyboard the focus was lost. Now, the back button or the options button are focused after opening / closing.

I encountered an issue when closing the options menu that is resolved by using setTimeout. I kinda dislike the solution as this should not be needed as we are already in the next tick so the DOM should've been rerendered. Thus, I am open for other solutions!

Instructions for local reproduction and review

npm run dish:dev and open / close the options menu via keyboard. The respective button should be focused afterwards.

Pull Request Checklist (for Assignee)

  • Changelogs are maintained
  • Functionality has been tested in Firefox, Chrome, Safari
  • [] Functionality has been tested on a smartphone
  • Functionality has been tested with 200% screen zoom
  • Screenreader functionality has been manually tested with NVDA

UI has been tested in the following tools regarding accessibility (only regarding functionality affected in this PR)

  • Chrome Lighthouse
  • Firefox Accessibility

@dopenguin dopenguin added the bug Something isn't working label Apr 10, 2025
@dopenguin dopenguin self-assigned this Apr 10, 2025
Copy link
Member

@warm-coolguy warm-coolguy left a comment

Choose a reason for hiding this comment

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

🐧 @dopenguin

hmm

@dopenguin
Copy link
Member Author

🐧 @dopenguin

hmm

Woops e1f59d6

🏓 @warm-coolguy

Copy link
Member

@warm-coolguy warm-coolguy left a comment

Choose a reason for hiding this comment

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

@dopenguin dopenguin merged commit bbc3106 into main Apr 14, 2025
4 checks passed
@dopenguin dopenguin deleted the fix/layer-options-tabbing branch April 14, 2025 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants