Skip to content

Conversation

@KenTandrian
Copy link
Collaborator

This PR fixes an accessibility issue in the "Destination Photos" component where screen readers would incorrectly announce invisible photo links when the component was closed, and the main button lacked a descriptive label.

Changes

  • Managed Interactive State: Updated ModvilTrackerPhotoElement to support a disabled property that toggles aria-hidden and tabindex on the internal link.
  • Dynamic Control: Logic in ModvilTrackerStatsElement (the container) now iterates over its photo children to disable them when the view is closed, ensuring they are removed from the accessibility tree and keyboard tab order.
  • Descriptive Labels: Added a specific aria-label to the "Open" button (e.g., "City, Region, Local Guide images") so screen reader users understand the button's purpose and context.

Impacted UI components

  • Destination Photos (modvil-tracker-photos and modvil-tracker-photo).

@KenTandrian
Copy link
Collaborator Author

Destination photos button:

photos btn

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.

1 participant