Calendar, TreeSelect, MultiSelect, AutoComplete, CascadeSelect, Table | aria-expanded attribute is undefined and aria-controls attribute referencing a hidden element #14358
Labels
Component: Accessibility
Issue or pull request is related to WCAG or ARIA
LTS-16-PORTABLE
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
Required ARIA attribute is missing.
Elements with role "combobox" should contain aria-expanded and aria-controls attribute. Aria-expanded attribute is missing and aria-controls attribute refers to the element that is not in the DOM yet. Aria-controls only needs to be set when the popup is visible.
The issue affects at least a few form components that use overlay: Calendar, Dropdown & TreeSelect.
The same problem also applies to the Paginator Dropdown: #14260
Also related to the OverlayPanel aria issue: #14290
Environment
Windows, Chrome
Reproducer
https://primeng.org/dropdown
Angular version
17.0.0
PrimeNG version
17.0.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.16.0
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: