Skip to content
kerfjsGitHub

Diagnostics

D041

aria-label or aria-labelledby on a <div>, <span> or other element whose role may not be named: screen readers drop it (axe aria-prohibited-attr).

Fix: Put the words in the element (a visually hidden <span data-part="sr-only"> keeps them off screen), or give it a role that takes a name: role="img" for a mark or icon that means something.

Status in kerf@0.1.0: reported by kerf check.

More: kerf docs design.