Accessibility
The AI label is legal text: it has to be understandable, legible and clear for everyone. It follows no WAI-ARIA pattern, because it isn’t interactive, and meets WCAG 2.1 AA by staying plain text: its name is its visible copy, the “AI” mark stays out of the accessibility tree, it scales with the user’s text settings and wraps instead of truncating, and it keeps its shape in forced-colours mode.
For designers
Section titled “For designers”- The label must reach at least 3:1 against the area right behind it, measured against that area and not an average of the image. Its text always has maximum contrast against the label’s own fill, so what you check is the label shape against the background. On a busy background it can pass and still be hard to spot. Source: WCAG 1.4.11 Non-text Contrast.
- Keep the text at 14px or larger, and design the two-line state: the label must stay legible at 200% zoom and at 320px width. Source: WCAG 1.4.4 Resize Text and WCAG 1.4.10 Reflow.
- No fade-in, no auto-dismiss. The label stays visible long enough to be understood.
- Don’t add a tooltip or link. That would make the label interactive and it would need its own review as a new variant.
For developers
Section titled “For developers”The label is a <span> with no role and no tab stop. It is announced once, as plain text, by the element it discloses. Don’t repeat it in the image’s alt text, and don’t announce two labels together: each label belongs to its own element. Mark it with its language (lang, plus dir for right-to-left) so screen readers use the right voice. A transparent outline keeps the label’s shape in forced-colours mode, where the fill disappears. See Labelling elements below for each part’s name.
Labelling elements
Section titled “Labelling elements”AI mark
The “AI” mark is visual. Mark it aria-hidden="true", so the text next to it carries the name on its own.
Text
The visible text is the accessible name. Don’t duplicate it in an aria-label, as it would be announced twice.
Icon-only text
The icon-only label keeps its text in sr-only, so it never disappears for assistive technology. Use a full name, “AI-generated” or “AI-modified”, never just “AI”.
Source: WCAG 4.1.2 Name, Role, Value.