Repository navigation
fix(a11y): use tone text colours for text and stop dimming dim text further - #376
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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):
--primary-color-text/--accent-color-text--accent-color-text,--warn-color-text,--orange-text--primary-color-textSeverityStyle.text;colorstays for the rows' accent barsmatButton="text"/"outlined"label, e.g. onboarding "Import"--button-text-color:--primary-color-textby default,--tone-textinside a tone scope, like filled buttons follow--toneWhite 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
opacityon 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-coloras 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
alert-severity-styles.spec.ts: every severity's text colour is its fill colour's-textvariant (it fails if one uses the fill).#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.ng buildpass.