Skip to main content

focus-on-hidden-item

Hidden or empty element receives focus

Severity: Serious

Description

Keyboard focus or touch screen swiping falls on an element that is hidden or empty.

Why is it important?

For people with impairments who use a keyboard to navigate through a website, hidden elements must not be focusable as it can be confusing to the user.

How to fix?

Fix this issue by adding aria-hidden=true for hidden elements.

References

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback!

Talk to an Expert
Download Copy