Page MenuHomePhabricator

Accessibility check: Background and foreground colors on disabled primary Codex buttons do not have a sufficient contrast ratio.
Closed, ResolvedPublic

Description

Based on T328058: [QA task] Accessibility check for Wikifunctions pages

Screen Shot 2023-02-01 at 2.46.52 PM.png (2,452×1,062 px, 398 KB)

Screen Shot 2023-02-01 at 6.50.59 PM.png (1,392×1,192 px, 184 KB)

Screen Shot 2023-02-01 at 2.55.38 PM.png (1,760×1,194 px, 233 KB)

Event Timeline

The first example is an upstream Ace editor choice which we can't control.

The second and third are both concerns with the WikimediaUI interface (via Codex); I guess we should tag them in?

Jdforrester-WMF renamed this task from Accessibility check: Background and foreground colors do not have a sufficient contrast ratio. to Accessibility check: Background and foreground colors on disabled primary Codex buttons do not have a sufficient contrast ratio..Feb 2 2023, 3:45 PM

The first example is an upstream Ace editor choice which we can't control.

The second and third are both concerns with the WikimediaUI interface (via Codex); I guess we should tag them in?

Thank you for reviewing and adding tags! Yes, button.html#destructive-primary-disabled displays the same contrast ratio complaint.

@Etonkovidova if i'm not mistaken, and i'm not interpreting this incorrectly, inactive buttons (and inactive components in general) are not required to have a minimum color contrast ratio

Text or images of text that are part of an inactive user interface component, that are pure decoration, that are not visible to anyone, or that are part of a picture that contains significant other visual content, have no contrast requirement.

source https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html

Thanks @AAlhazwani-WMF for putting it in the right context. See also T281717#7053678 for historic reference.
Note, that this exception stays the same in WCAG 2.2 https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html

Thanks @AAlhazwani-WMF for putting it in the right context. See also T281717#7053678 for historic reference.
Note, that this exception stays the same in WCAG 2.2 https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html

Thx @Volker_E and @AAlhazwani-WMF for clarification, for the reference to https://phabricator.wikimedia.org/T281717#7053678. My understanding of "inactive user interface component" was different. I saw the inactive state of any button as an essential element of the page that contributes to users' understanding of workflows available to them.

Etonkovidova claimed this task.