Skip to content

Linter: Consider expanding a11y-no-aria-label-misuse restricted elements list #1790

Description

@marcoroth

The a11y-no-aria-label-misuse rule currently restricts aria-label/aria-labelledby on a conservative set of elements: h1h6, strong, em, i, p, b, and code.

According to Not so short note on aria-label usage (big table edition), many more elements have no aria-label support:

Text-level semantics: abbr, cite, del, dfn, ins, kbd, mark, pre, q, s, samp, small, sub, sup, time, u, var, wbr

Block elements: address, blockquote, dd, dt, li

Other: bdi, bdo, rp, rt, ruby

The article is from 2020, so browser support may have changed. Each batch should be validated against current browser/screen reader behavior before adding.

References:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions