Skip to content

fix(rules): a11y/duplicate-id-aria ignores missing aria-controls target of collapsed disclosure #2224 - #2231

Merged
nc9 merged 2 commits into
mainfrom
boat/aria-controls-collapsed-2224
Nov 22, 2026
Merged

nc9 merged 2 commits into
mainfrom
boat/aria-controls-collapsed-2224

Conversation

@nc9

@nc9 nc9 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Closes #2224.

  • aria-controls/aria-owns on aria-expanded="false" or aria-haspopup elements: missing target ignored.
  • Missing aria-labelledby/aria-describedby target: still fail (check aria-missing-name-id).
  • Other missing targets (e.g. aria-expanded="true" aria-controls): warn, check aria-missing-id-ref, message "ARIA reference to a missing id" (issue text said info, AC says still reports; chose warn).
  • Duplicates: own check duplicate-id-aria, message "duplicated ID(s)".

Tests: tests/a11y-duplicate-id-aria-2224.test.ts; rules suite 12612 pass 0 fail. changelog.d entry added; changelog check OK. Skill change: none.

…et of collapsed disclosure #2224

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9
nc9 marked this pull request as ready for review November 22, 2026 04:40
@nc9
nc9 merged commit 7083a05 into main Nov 22, 2026
10 checks passed
@nc9
nc9 deleted the boat/aria-controls-collapsed-2224 branch November 22, 2026 06:09
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.

a11y/duplicate-id-aria: reports a missing aria-controls target of a collapsed disclosure as an error

1 participant