Page MenuHomePhabricator

@background-color-progressive-subtle has insufficient contrast with links in night mode
Closed, ResolvedPublic1 Estimated Story Points

Description

In night mode, @background-color-progressive-subtle is defined (core, codex) as #1d2a42. However, this color has insufficient contrast with @color-progressive used for links (#6d8af2)... at 4.49 according to the webaim checker. It would be great if it were possible to change the definition a little bit to make it WCAG AA compliant, as it's really a small change, and would allow us to more freely use this as background color in places that may have links (a recent example being mw-datatable).

P.S. There doesn't seem to be a project tag for reporting night mode issues/requests. FY2023-24-WE 2.1 Typography and palette customizations seems to be the only one, but to me it feels weird filing a task under another team's KR, so much so that I'm doing this in my volunteer capacity.

Acceptance Criteria

  • @color.blue800 color token has been updated in both Figma and code to fix accessibility issue.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Volker_E added subscribers: DTorsani-WMF, Volker_E.

Thanks for reporting @Daimona!
While I see the WCAG guidelines as guiding principles, as in 4.49:1 vs 4.5:1 is not a fail in my opinion, I assume that we could change the color slightly to also make automated tests not chew up on this every time it's encountered. cc: @DTorsani-WMF

While I see the WCAG guidelines as guiding principles, as in 4.49:1 vs 4.5:1 is not a fail in my opinion, I assume that we could change the color slightly to also make automated tests not chew up on this every time it's encountered. cc: @DTorsani-WMF

Indeed, that's the main reason why I reported this -- automated checkers really don't seem to think that 4.49 is fine.

Change #1030956 had a related patch set uploaded (by Dtorsani; author: Dtorsani):

[design/codex@main] tokens: Update blue800 value

https://gerrit.wikimedia.org/r/1030956

DTorsani-WMF updated the task description. (Show Details)

Thanks for bringing this to our attention. To appease the automated tests, I've updated this color ever so slightly to meet necessary contrast ratios in the patch listed directly above. The change is unnoticeable but fixes the issue.

I've assigned this task to myself, updated the acceptance criteria, and added it to the DST board.

Change #1030956 merged by jenkins-bot:

[design/codex@main] tokens: Update blue800 value

https://gerrit.wikimedia.org/r/1030956

Change #1032095 had a related patch set uploaded (by VolkerE; author: VolkerE):

[mediawiki/core@master] Update Codex from 1.5.0 to 1.6.0

https://gerrit.wikimedia.org/r/1032095

Change #1032095 merged by jenkins-bot:

[mediawiki/core@master] Update Codex from 1.5.0 to 1.6.0

https://gerrit.wikimedia.org/r/1032095

Volker_E triaged this task as Low priority.
Volker_E removed a project: Patch-For-Review.
Volker_E set the point value for this task to 1.