Skip to content

v1.4.0

Choose a tag to compare

@github-actions github-actions released this 04 Dec 16:39
· 15 commits to main since this release
4f5b641

Contrast from the project's theme

  • Static contrast resolves var(--x), Tailwind v4 theme colors (text-muted, bg-primary), text-(--x) and bg-[var(--x)] from the CSS custom properties and @theme tokens of the project's stylesheets and the file's own <style> blocks. The stylesheets are read as data, in the editor, allyward check and allyward mcp alike, and the editor checks open files again when a stylesheet changes.
  • Every theme variant is checked on its own: a .dark or [data-theme] rule, prefers-color-scheme: dark, and Tailwind's dark: classes in the variant @custom-variant dark names. A Finding says which variant fails, such as "Text contrast is 2.33:1 in the theme variant .dark".
  • A variable with different values in two stylesheets, one a component rule overrides, or one only a theme variant sets, stays Needs Review with the reason. A Tailwind v3 JavaScript config is not read.
  • allyward/text-contrast is a Proven rule in HTML, JSX, TSX and Vue, so its Findings now show as warnings there.
  • In Vue, text inside a <template> with a directive (#header, v-if, v-for) is checked for contrast; it was skipped as unrendered.

Label in Name and Text Spacing in the Check

  • New rule allyward/label-in-name (2.5.3) in every language: a link, button or other widget whose aria-label or aria-labelledby name leaves out its visible text, as in ACT rule 2ee8b8, such as <button aria-label="Submit form">Send</button>. Only text that is literal in the source counts; text from expressions, slots, child components or blocks is never guessed.
  • New rule allyward/text-spacing (1.4.12) in HTML, Vue, Svelte, Astro and Angular: text whose own style attribute holds letter-spacing, word-spacing or line-height below the minimum with !important, as in ACT rules 24afc2, 9e45ec and 78fd32. JSX and TSX are left out, because React drops !important from style objects.

Zoom, time limits and moving content in the Check

  • meta-viewport (1.4.4) and meta-refresh (2.2.1) are now Proven in HTML: a viewport <meta> that blocks zooming with user-scalable=no or a low maximum-scale, and a <meta http-equiv="refresh"> that reloads or redirects the page after a delay. Both stay HTML only: the Astro and Angular engines do not check <meta>, so their cases are misses, and Vue and Svelte components almost never hold a <meta>.
  • meta-refresh judges only the first <meta http-equiv="refresh"> with a valid content, the one a browser follows, as in ACT rule bc659a. A later refresh no longer gives a Finding.
  • The rules against moving <marquee> text (2.2.2) are now Proven in every language: marquee in HTML, no-distracting-elements in JSX, TSX, Astro, Vue and Angular, and a11y_distracting_elements in Svelte.