Skip to content
weftGitHub

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 weft@0.1.0: reported by weft check.