Skip to content

Sync aria-hidden for grid axis labels when showing/hiding#26

Merged
jordanhom merged 1 commit intomainfrom
codex/update-aria-hidden-attributes-for-grid-labels
Feb 6, 2026
Merged

Sync aria-hidden for grid axis labels when showing/hiding#26
jordanhom merged 1 commit intomainfrom
codex/update-aria-hidden-attributes-for-grid-labels

Conversation

@jordanhom
Copy link
Owner

Motivation

  • Ensure assistive technologies receive the correct visibility state for the grid axis labels by updating aria-hidden whenever the labels are shown or hidden.

Description

  • In js/ui.js inside updateAxisLabels add gridAxisLabelTop.setAttribute('aria-hidden', show ? 'false' : 'true') and gridAxisLabelLeft.setAttribute('aria-hidden', show ? 'false' : 'true') in both the show and hide branches so the attribute stays in sync with visual state.

Testing

  • No automated tests were run for this change.

Codex Task

@jordanhom jordanhom marked this pull request as ready for review February 6, 2026 12:35
@jordanhom jordanhom merged commit 33071b7 into main Feb 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant