Skip to content

EES-5910 Ensure tooltips visible when tabbing through map regions #5713

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 1 commit into from
Mar 24, 2025

Conversation

Guy-HiveIT
Copy link
Collaborator

This PR fixes an issue where tooltips were sometimes not visible when tabbing through regions of a map block.
We detect tab presses and zoom the map out when this happens.

N.B I have also added handling for user pressing 'Enter' when focussing on a region, to 'select' the region and display the key stat block. If you think that is out of scope for this ticket or otherwise not wanted, let me know and I will remove it.

Copy link
Collaborator

@bennettstuart bennettstuart left a comment

Choose a reason for hiding this comment

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

Left one comment, if it's not required feel free to merge

@@ -107,6 +106,8 @@ export default function MapGeoJSON({
}
}, [map, selectedFeature]);

const resetZoom = () => map.setZoom(5);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to reset the position also? the default position is available in the parent component so could be used if so

@Guy-HiveIT Guy-HiveIT merged commit d1712dc into dev Mar 24, 2025
11 checks passed
@Guy-HiveIT Guy-HiveIT deleted the EES-5910-tab-through-maps-tooltips-visibility branch March 24, 2025 11:34
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