p-overlayPanel: aria-expanded and aria-controls not added to trigger element #14621
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
When opening a p-overlayPanel element using a button, the
aria-expanded
andaria-controls
attributes are not set to the button. If I understand the documentation correctly, this should happen.I can reproduce the same issue with the
p-menu
in popup mode. I guess it might be the same issue.Environment
I can reproduce this on primeng.org.
Reproducer
https://primeng.org/overlaypanel
Angular version
17.0.2
PrimeNG version
17.3.3
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.3.0
Browser(s)
Chrome 120
Steps to reproduce the behavior
Show
buttonExpected behavior
p-button
orbutton
element,...aria-expanded
attribute should be set totrue
aria-controls
attribute should be set to the id of the overlayaria-expanded
attribute is either removed or set tofalse
aria-controls
attribute is removedThe text was updated successfully, but these errors were encountered: