Skip to content

test(multiple): check for incorrect usage of Angular Aria directives and log violations#33195

Open
adolgachev wants to merge 8 commits into
angular:mainfrom
adolgachev:aria-validation
Open

test(multiple): check for incorrect usage of Angular Aria directives and log violations#33195
adolgachev wants to merge 8 commits into
angular:mainfrom
adolgachev:aria-validation

Conversation

@adolgachev
Copy link
Copy Markdown
Contributor

@adolgachev adolgachev commented May 4, 2026

Used gemini to go through all of the components and generate additional violation checks for possible issues with how each set of angular aria directives are used together. Also generated specs for the new and previously existing violations.

Final commit adds a utility method to report the violations which does the console.error but also takes in an element to help in location where the issue is coming from.

@angular-robot angular-robot Bot added detected: feature PR contains a feature commit area: aria/accordion labels May 4, 2026
@adolgachev adolgachev changed the title feat(aria/accordion): check for possible errors with usage and log vi… test(aria/accordion): check for incorrect usage of Accordion directives and log violations May 4, 2026
@adolgachev adolgachev changed the title test(aria/accordion): check for incorrect usage of Accordion directives and log violations test(multiple): check for incorrect usage of Angular Aria directives and log violations May 4, 2026
@adolgachev adolgachev removed the detected: feature PR contains a feature commit label May 4, 2026
Comment thread src/aria/accordion/accordion-group.ts Outdated
Comment thread src/aria/accordion/accordion-panel.ts
Comment thread src/aria/combobox/combobox.ts Outdated
@adolgachev adolgachev marked this pull request as ready for review May 7, 2026 23:50
@pullapprove pullapprove Bot requested a review from crisbeto May 7, 2026 23:50
@adolgachev adolgachev added the action: review The PR is still awaiting reviews from at least one requested reviewer label May 7, 2026
@adolgachev adolgachev requested a review from tjshiu May 7, 2026 23:50
Comment thread src/aria/private/grid/grid.ts
Comment thread src/aria/private/tree/tree.ts Outdated
Comment thread src/aria/private/utils/violations.ts Outdated
tab: this._tabPattern,
});

private readonly _tabContent = contentChild(TabContent);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably consolidate this into the DeferredContent and check whether a DeferredContent is missing when DeferredContentAware is used.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking since DeferredContent is private, better to show violation tied to TabPanel. Also putting it lower would require adding more the DeferredContentAware which seemed less ideal just for the violation check.

Comment thread src/aria/combobox/combobox.ts Outdated
@adolgachev adolgachev force-pushed the aria-validation branch 4 times, most recently from 76dfcb5 to 5b722ad Compare May 12, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants