Skip to content

Make static map keyboard-navigable - #1

Merged
goldenapples merged 1 commit into
mainfrom
popup-focus-management
Aug 7, 2026
Merged

Make static map keyboard-navigable#1
goldenapples merged 1 commit into
mainfrom
popup-focus-management

Conversation

@goldenapples

Copy link
Copy Markdown
Contributor

Adds focus management controls for keyboard navigation of the static map: when opening a popup via the keyboard, the keyboard focus is now transferred to the first focusable element inside the tooltip, and when focus leaves the tooltip, it is closed.

Additionally, adds some logic attempting to populate a meaningful aria-label for each button based on the text inside the tooltip.

Adds focus management controls for keyboard navigation of the static
map: when opening a popup via the keyboard, the keyboard focus is now
transferred to the first focusable element inside the tooltip, and when
focus leaves the tooltip, it is closed.

Additionally, adds some logic attempting to populate a meaningful
aria-label for each button based on the text inside the tooltip.

@kadamwhite kadamwhite left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Have not tested locally but the logic makes sense to me on a read through

@goldenapples
goldenapples merged commit 1c00b62 into main Aug 7, 2026
1 check passed
@goldenapples
goldenapples deleted the popup-focus-management branch August 7, 2026 16:29
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