Skip to main content
No Result Found

hidden-element-getting-focus

Focus is coming on hidden or empty elements.

Severity: Serious

Description

Hidden or empty elements are getting focused.

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?

Add the key-value pair of aria-hidden=true on hidden elements to resolve this issue.

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 Check Circle