You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
a11y/duplicate-id-aria: reports a missing aria-controls target of a collapsed disclosure as an error #2224
Seen.a11y/duplicate-id-aria (error, site-wide) reports a MISSING aria-controls target, not a duplicate. urun.sh: <button aria-expanded="false" aria-controls="mobile-nav"> with the panel mounted only when opened. aicanvas.me: React useId ids (_R_cilb_) of collapsed popovers. A collapsed disclosure whose panel is not mounted is accepted (axe aria-valid-attr-value tolerates it). The id/name says "duplicate id", severity is error, and it tops a founder's report.
Expected. Ignore aria-controls/aria-owns targets when the same element has aria-expanded="false" (or aria-haspopup); word the message "ARIA reference to a missing id"; keep error for missing aria-labelledby/aria-describedby targets and truly duplicated ids; downgrade the rest to info.
Acceptance Criteria
Fixture: aria-expanded="false" aria-controls="x" with no #x produces no error.
Fixture: aria-expanded="true" aria-controls="x" with no #x still reports, and a missing aria-labelledby target still errors.
Missing-target and duplicate-id findings have distinct messages.
Activity
style(rules): format duplicate-id-aria test #2224
fix(rules): a11y/duplicate-id-aria ignores missing aria-controls targ…