goetzrobin / spartan

Cutting-edge tools powering Angular full-stack development.
https://spartan.ng
MIT License
1.35k stars 143 forks source link

Blocked aria-hidden #347

Open simonetimi opened 1 month ago

simonetimi commented 1 month ago

Please provide the environment you discovered this bug in.

The issue is visible on the documentation page itself: popover doc. It also happens using the popover component in my app.

Which area/package is the issue in?

popover

Description

When clicking the element to open the popover, clicking it again will trigger an error on the browser console (Google Chrome).

Please provide the exception or error you saw

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.

Other information

No response

I would be willing to submit a PR to fix this issue