Skip to content

Additional core block exclusions on aria-hidden #567

Description

@amberhinds

Is your feature request related to a problem? Please describe.

There are some correct uses of aria-hidden related to core blocks that it would be good for us to exclude from flagging an aria-hidden warning because we know that they are correct.

Describe the solution you'd like

Screenshot 2024-03-30 at 9 38 13 PM

Here are the code snippets:
<span aria-hidden="true" class="wp-block-cover__background has-background-dim"></span>

<span class="wp-block-post-featured-image__overlay has-background-dim has-background-dim-10 has-contrast-2-background-color" style="border-radius:5px" aria-hidden="true"></span>

Why do you think this feature is something we should consider for this plugin?

We should avoid as many false positives as we can and make our rules the best ruleset for WordPress. 🙂

Metadata

Metadata

Assignees

Labels

Priority: 4-LowSmall impact, resolve as convenient.enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions