Skip to content

Restore aria attributes after a highlight - #622

Merged
nilbuild merged 3 commits into
nilbuild:masterfrom
MaciejZet:fix/restore-aria-attributes
Oct 3, 2026
Merged

nilbuild merged 3 commits into
nilbuild:masterfrom
MaciejZet:fix/restore-aria-attributes

Conversation

@MaciejZet

Copy link
Copy Markdown
Contributor

Summary

Highlight keeps the element's previous aria-controls, aria-expanded, and aria-haspopup, then writes them back when the highlight moves on and when the tour is destroyed. During the step the element still points at driver-popover-content.

Test plan

  • pnpm test:run (341 passed)
  • pnpm build
  • pnpm lint:package

Fixes #495

MaciejZet and others added 3 commits September 30, 2026 12:41
The highlight overwrites aria-controls, aria-expanded, and aria-haspopup. The previous values are written back when the highlight moves on and when the tour is destroyed.

Fixes nilbuild#495
@nilbuild
nilbuild merged commit 2a30339 into nilbuild:master Oct 3, 2026
@nilbuild

nilbuild commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Thanks! I made the helper code a bit shorter and added one more test before merging.

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.

aria-controls attribute removed during runtime.

2 participants