Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 873 Bytes

no-aria-hidden-body.md

File metadata and controls

31 lines (20 loc) · 873 Bytes

no-aria-hidden-body

✅ The extends: 'recommended' property in a configuration file enables this rule.

🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.

The aria-hidden attribute should never be present on the <body> element, as it hides the entire document from assistive technology.

Examples

This rule forbids the following:

<body aria-hidden>
<body aria-hidden="true">

This rule allows the following:

<body>

References