Page MenuHomePhabricator

Fix Echo color contrast issues in standard theme & night mode
Closed, ResolvedPublic2 Estimated Story Points

Description

Steps to replicate the issue

  • Log in and open Echo
  • Check the Echo overlay for color contrast issues

What happens?:
Lots of color contrast issues.
Details in T364805: Echo has color contrast issues in standard theme and night theme

What should have happened instead?:
No color contrast issues.

Design Guidance:
ProposalContrastContrast
Unread proposalbackground-color/interactive text-color/basebackground-color/interactive text-color/subtle
Unread proposal.png (120×550 px, 7 KB)
'test' text uses #202122 (text-color/base); 'username' text uses #54595d (text-color/subtle)
Screenshot 2024-05-30 at 15.59 2.png (145×157 px, 8 KB)
Screenshot 2024-05-30 at 13.55 1.png (144×159 px, 8 KB)
Read proposal background-color/base text-color/basebackground-color/base text-color/subtle
Read proposal (1).png (120×550 px, 6 KB)
'test' text uses #202122 (text-color/base); 'username' text uses #54595d (text-color/subtle)
Screenshot 2024-05-30 at 16.13 1.png (144×167 px, 8 KB)
Screenshot 2024-05-30 at 13.58 1.png (144×163 px, 8 KB)

Acceptance Criteria:

Given I'm viewing Echo notification in standard theme
When I run an accessibility check,
Then color contrast tests pass at WCAG Level AA

Given I'm viewing Echo notification in night mode
When I run an accessibility check,
Then color contrast tests pass at WCAG Level AA

(Fixing the standard theme by using design tokens should also fix night mode)

QA Results - Beta

ACStatusDetails
1T366322#9914579

Event Timeline

Fixing the standard theme by using design tokens should also fix night mode so web team is very interested in the outcome of this ticket! Thanks for creating it!

Thank you @Jdlrobson! To clarify, would the task description proposal cover both standard and night modes? Or do we need to make a new proposal for night mode?

The description should cover both yes - if you use design tokens, these should work in both.

KStoller-WMF renamed this task from Fix Echo color contrast issues in standard theme to Fix Echo color contrast issues in standard theme & night mode.May 31 2024, 6:15 PM
KStoller-WMF updated the task description. (Show Details)
KStoller-WMF lowered the priority of this task from High to Medium.Jun 5 2024, 4:55 PM

T358405 is for the special page. This is for the overlay itself. They likely have some overlap.

Jdlrobson raised the priority of this task from Medium to High.Jun 13 2024, 12:46 AM

Updating priority based on web team internal spreadsheet.

A short term fix to consider, to make this more cohesive with the dark mode design is to add the class skin-invert in Echo to the existing mw-echo-ui-overlay notheme element. This would invert the overlay, but would mean none of the hovers backgrounds would be visible. If we take this approach I'd recommend creating a subtask and keeping this one open for the long term fix.

The longer term (and proper) fix here is to use design tokens, and provide overrides for the dark theme where that doesn't exist, but maybe we don't want to do that now?

Jdlrobson set the point value for this task to 2.Jun 14 2024, 6:55 PM
Jdlrobson added subscribers: JScherer-WMF, ovasileva.

@ovasileva @JScherer-WMF Echo has pre-existing color contrast issues in light theme and by inverting we'll add that to dark mode too. Are we okay with that?

Screenshot 2024-06-17 at 3.37.55 PM.png (1×862 px, 161 KB)

Screenshot 2024-06-17 at 3.38.17 PM.png (1×850 px, 191 KB)

@ovasileva @JScherer-WMF Echo has pre-existing color contrast issues in light theme and by inverting we'll add that to dark mode too. Are we okay with that?

Screenshot 2024-06-17 at 3.37.55 PM.png (1×862 px, 161 KB)

Screenshot 2024-06-17 at 3.38.17 PM.png (1×850 px, 191 KB)

We can go ahead with this for now and flag it as tech/UX/a11y debt to fix quickly.

Change #1048048 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/extensions/Echo@master] Enable dark mode for echo overlay

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

Change #1048049 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/skins/Vector@master] Remove OOUI popup from OOUI overrides in order to enable dark mode in echo

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

bwang removed bwang as the assignee of this task.Jun 20 2024, 5:52 PM
bwang moved this task from Doing to Code Review on the Web-Team-Backlog (FY2023-24 Q4 Sprint 6) board.
bwang subscribed.

Change #1048049 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Remove OOUI overrides

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

Change #1048048 merged by jenkins-bot:

[mediawiki/extensions/Echo@master] Enable dark mode for echo overlay

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

@KStoller-WMF @Jdlrobson @ovasileva Please review issues below, thanks!

Test Result - Beta

Status: ❌ FAIL
Environment: Beta
OS: macOS Sonoma 14.5
Browser: Chrome 126
Device: MBA
Emulated Device: NA

Test Artifact(s):

ColorUnreadReadBoth
Dark
2024-06-21_15-02-06.png (724×3 px, 357 KB)
2024-06-21_15-01-28.png (738×3 px, 353 KB)
2024-06-21_15-05-25.png (902×3 px, 413 KB)
Light
2024-06-21_15-07-51.png (747×3 px, 334 KB)
2024-06-21_15-07-40.png (747×3 px, 332 KB)
N/A
ovasileva added a subscriber: GMikesell-WMF.

As part of signoff, create a ticket to address remaining pre-existing accessibility issues