Skip to content

refactor: adjust aria-controls to triggers according to conditions #3591

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

seongminn
Copy link

@seongminn seongminn commented Jun 10, 2025

Description

related #3560

Applied the aria-controls attribute conditionally to trigger components.
The aria-controls attribute points to the id of elements whose content or presence is controlled by the trigger. reference

The key consideration is that the referenced id must always exist in the DOM.
The dropdown-menu component already implements this approach, but the other components did not follow this pattern, so I have updated them accordingly.

Modified components:

  • dialog
  • menu
  • navigation-menu
  • popover
  • select

p.s) The collapsible and tabs components were not modified because the elements referenced by their aria-controls attributes are always present in the DOM.

Copy link

changeset-bot bot commented Jun 10, 2025

🦋 Changeset detected

Latest commit: acdd1fb

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Jacksonmills
Copy link

looks good hope we can get this fixed asap!

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