Skip to content

fix(a11y): use tone text colours for text and stop dimming dim text further - #376

Merged
Hakanbaban53 merged 2 commits into
Zarestia-Dev:masterfrom
repires:fix/a11y-contrast
Nov 25, 2026
Merged

Hakanbaban53 merged 2 commits into
Zarestia-Dev:masterfrom
repires:fix/a11y-contrast

Conversation

@repires

@repires repires commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Part of #354. Follows #371.

#371 kept dim text at GNOME's own level (about 3.2:1, 90% with "increase contrast") and gave each tone a libadwaita-style text colour (--tone-text). Re-auditing master found places that still go below GNOME's levels. This fixes those and nothing else.

What

Fill colour used as text (the palette fill on a light tint of itself):

Where Before Now
Keyboard Shortcuts: Ctrl/Alt/Shift keys (green), function and action keys (blue) 2.03:1 --primary-color-text / --accent-color-text
About: version and platform badges (incl. deb/rpm) 3.04:1 light, 3.48:1 dark --accent-color-text, --warn-color-text, --orange-text
Backend modal: "Connecting" and "Local" badges (same pattern) --primary-color-text
Alerts: severity filter pills and alert severity pills 1.99:1 new SeverityStyle.text; color stays for the rows' accent bars
Every matButton="text" / "outlined" label, e.g. onboarding "Import" 2.12:1 new --button-text-color: --primary-color-text by default, --tone-text inside a tone scope, like filled buttons follow --tone

White on green: the backend modal's "Active" badge (2.29:1) uses --primary-fg-color (dark on the green, and it follows the system accent from #363), as tone buttons already do.

Dim text dimmed again with opacity on top of --dim-color: empty-state text (2.45:1), menu group labels, the add-remote menu's shortcut hints (1.89:1 light, 2.73:1 dark), the RC Console section label (2.41:1) and the onboarding step text (2.79:1). They now use --dim-color as it is, which puts them at the same level as the rest of the dim text.

Visible change: in dark mode, text and outlined button labels become the lighter green (#64eca5) that tone text already uses there, instead of the fill green.

Not in this PR

Tests

  • New alert-severity-styles.spec.ts: every severity's text colour is its fill colour's -text variant (it fails if one uses the fill).
  • Checked in the headless UI with Playwright, both themes, before → after: fill-as-text failures 19 → 0, text dimmed below GNOME's level 18 → 0; the onboarding Import label is #007c3d (light) and #64eca5 (dark). With Windows' blue and a light gold simulated as the system accent, the only coloured failure left is the Flow pill above.
  • Full suite (3665 tests; the list lasso test timed out under load and passes on its own), ESLint, Prettier and ng build pass.

…urther

Contrast failures from re-auditing master (Zarestia-Dev#354) that are below GNOME's
own levels, unlike the dim text kept in Zarestia-Dev#371:
- Fill colours used as text on light tints: modifier keys in Keyboard
  Shortcuts (2.03:1), About's version and platform badges (3.04:1),
  the backend modal's badges, the alert severity filters and pills
  (1.99:1), and the label of every text or outlined Material button,
  such as onboarding's Import (2.12:1). They now use --*-text, the
  colours Zarestia-Dev#371 derives as libadwaita does. Alert severities get a
  separate text colour; their fill colour stays for accent bars.
- White on the green "Active" backend badge (2.29:1) uses
  --primary-fg-color, which also follows the system accent.
- Dim text with another opacity on top: empty-state text, menu group
  labels, add-menu shortcut hints, the RC Console section label and the
  onboarding step text (1.89:1 to 2.79:1). They use --dim-color as is.
@Hakanbaban53
Hakanbaban53 merged commit 378a844 into Zarestia-Dev:master Nov 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants