dequelabs / cauldron

https://cauldron.dequelabs.com/
Mozilla Public License 2.0
91 stars 21 forks source link

Bug: Escaping Popover shows aria-hidden error in the console #1683

Open anastasialanz opened 1 month ago

anastasialanz commented 1 month ago

Steps to reproduce

https://github.com/user-attachments/assets/1703fdb0-cd88-4c9e-9366-1ca7b2d69c04

Expected Behavior

No console error for aria-hidden

Actual Behavior

A console error when pressing esc after opening the popover

Version

6.7.0

What browsers are you experiencing the problem on?

Chrome

Relevant log output

Blocked aria-hidden on a <button> element because the element that just received focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at https://w3c.github.io/aria/#aria-hidden. <button type=​"button" class=​"Button--secondary" aria-haspopup=​"true" aria-expanded=​"true" aria-controls=​"popover2">​…​</button>​gridUnderstand this error

Anything else we should know?

Additional information