[go: nahoru, domu]

Page MenuHomePhabricator

Special:EditGrowthConfig, Special:MentorDashboard and Special:EnrollAsMentor has color contrast issues in night theme
Closed, ResolvedPublic

Description

Background

Special:EditGrowthConfig has color contrast issues in night theme.,

User story

As a user I want all my pages in dark mode.

Requirement

Ensure that Special:EditGrowthConfig, Special:MentorDashboard, and Special:EnrollAsMentor are legible and have proper color contrast in night mode.

BDD

Feature: Color Contrast for Growth Features in Night Mode

  Scenario: Ensure Special:EditGrowthConfig is compatible with night mode
    Given the user has enabled night mode
    When the user visits Special:EditGrowthConfig
    Then all elements should be legible
    And all elements should have proper color contrast

  Scenario: Ensure Special:MentorDashboard is compatible with night mode
    Given the user has enabled night mode
    When the user visits Special:MentorDashboard
    Then all elements should be legible
    And all elements should have proper color contrast

  Scenario: Ensure Special:EnrollAsMentor is compatible with night mode
    Given the user has enabled night mode
    When the user visits Special:EnrollAsMentor
    Then all elements should be legible
    And all elements should have proper color contrast

Test Steps

Test Case 1: Verify Special:EditGrowthConfig in Night Mode

  1. Enable night mode.
  2. Navigate to Special:EditGrowthConfig.
  3. AC1: Confirm that all elements are legible.
  4. AC2: Confirm that all elements have proper color contrast.

Test Case 2: Verify Special:MentorDashboard in Night Mode

  1. Enable night mode.
  2. Navigate to Special:MentorDashboard.
  3. AC3: Confirm that all elements are legible.
  4. AC4: Confirm that all elements have proper color contrast.

Test Case 3: Verify Special:EnrollAsMentor in Night Mode

  1. Enable night mode.
  2. Navigate to Special:EnrollAsMentor.
  3. AC5: Confirm that all elements are legible.
  4. AC6: Confirm that all elements have proper color contrast.

Acceptance criteria

Communication criteria - does this need an announcement or discussion?

N/A

Rollback plan

N/A

This task was created by Version 1.0.0 of the Web team task template using phabulous

Event Timeline

Jdlrobson renamed this task from Special:EditGrowthConfig has color contrast issues in night theme to Special:EditGrowthConfig and Special:EnrollAsMentor has color contrast issues in night theme.May 31 2024, 4:37 PM
Jdlrobson updated the task description. (Show Details)
Jdlrobson triaged this task as Medium priority.May 31 2024, 4:49 PM
Michael subscribed.

Probably the best way to solve this for Special:EditGrowthConfig is by getting rid of Special:EditGrowthConfig entirely, which we already plan to do by migrating to CommunityConfiguration on all wikis. However, I'm not aware of there being a specific date target for that yet.

Not sure what the plan for Special:EnrollAsMentor is.

Jdlrobson renamed this task from Special:EditGrowthConfig and Special:EnrollAsMentor has color contrast issues in night theme to Special:EditGrowthConfig, Special:MentorDashboard and Special:EnrollAsMentor has color contrast issues in night theme.Jun 3 2024, 7:06 PM
Jdlrobson updated the task description. (Show Details)

I checked Special:EnrollAsMentor and Special:MentorDashboard for accessibility (i.e. contrast issues)

(1) for Special:EnrollAsMentor there is only one contrast issue is reported:

Screen Shot 2024-06-04 at 4.47.26 PM.png (1×2 px, 208 KB)

(2) Special:MentorDashboard has also only one contrast issues

Screen Shot 2024-06-04 at 4.49.22 PM.png (928×1 px, 102 KB)

Additionally, the icons in the mentee activity table are not visible in the dark mode:

Screen Shot 2024-06-04 at 4.56.37 PM.png (1×2 px, 396 KB)

None of the listed special pages is a part of MediaWiki-extensions-CommunityConfiguration, I'm removing the CommunityConfiguration release task as a subtask for that reason. We should obviously fix the problem though :).

Change #1050078 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/GrowthExperiments@master] Use codex design tokens rather than hardcoded values for MentorDashboard

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

None of the listed special pages is a part of MediaWiki-extensions-CommunityConfiguration, I'm removing the CommunityConfiguration release task as a subtask for that reason. We should obviously fix the problem though :).

Isn't EditGrowthConfig the same as https://test.wikipedia.org/wiki/Special:CommunityConfiguration ?

@Etonkovidova I can't replicate the issues you flagged earlier - does this mean these have been fixed upstream? @Sgs https://gerrit.wikimedia.org/r/c/mediawiki/extensions/GrowthExperiments/+/1050078 should fix the issues Elena flagged in MentorDashboard.

@KStoller-WMF do you have any objections with me enabling these pages in our next batch?

Special:EditGrowthConfig will be replaced by Special:CommunityConfiguration within the next few weeks.
EditGrowthConfig was the page that allowed Community Configuration for only Growth features, Special:CommunityConfiguration is the page that will replace it as we rollout the new CommunityConfiguration extension. (Special:EditGrowthConfig will then redirect to Special:CommunityConfiguration).

@Etonkovidova I can't replicate the issues you flagged earlier - does this mean these have been fixed upstream? @Sgs https://gerrit.wikimedia.org/r/c/mediawiki/extensions/GrowthExperiments/+/1050078 should fix the issues Elena flagged in MentorDashboard.

@KStoller-WMF do you have any objections with me enabling these pages in our next batch?

If the issues @Etonkovidova noticed earlier are resolved, then I have no objections. (I tried to test myself, but even with the ?vectornightmode=1 parameter I don't end up seeing those pages in night mode).

Change #1050078 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Use codex design tokens rather than hardcoded values for MentorDashboard

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

Change #1050463 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/GrowthExperiments@master] Fixes colors of data table sort icons and header in dark mode

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

@Jdlrobson, @KStoller-WMF - I re-tested Special:CommunityConfiguration (and submodules), Special:EnrollAsMentor, and Special:MentorDashboard. Below are the test results (testing is done on eswiki beta. The issues listed there are specific for Dark mode.
It seems that except the icons on Special:MentorDashboard - all looks fine.

Added the test results to

Test results - Special:CommunityConfiguration
DescriptionElement LocationScreenshot(s)
Accessibility issue - doesn't exist in Light mode Links must be distinguishable without relying on color (two issues).ext-communityConfiguration-Guidelines__Guideline:nth-child(1) > p > .external.text <a class="external text" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Community_configuration">Learn more</a>
Screen Shot 2024-06-27 at 1.56.09 PM.png (736×2 px, 195 KB)

Note: The issue "Links must be distinguishable without relying on color" is present for any link in Community Configuration modules.

Special:EnrollAsMentor and Special:MentorshipDashboard were tested on cswiki beta.

Test results - Special:EnrollAsMentor - ✅ No issues
Test results - Special:MentorshipDashboard
Descriptionscreenshots
the icons in the table are still not visible
Screen Shot 2024-06-27 at 2.22.59 PM.png (1×3 px, 333 KB)

the icons in the table are still not visible

Yep this is covered by the last remaining patch https://gerrit.wikimedia.org/r/1050463 🙌

the icons in the table are still not visible

Yep this is covered by the last remaining patch https://gerrit.wikimedia.org/r/1050463 🙌

Thx! Yes, I've added this task to my list of the tasks to follow up. As soon as the patch is merged, I re-check.

Change #1050463 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Fixes colors of data table sort icons and header in dark mode

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

Change #1050463 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Fixes colors of data table sort icons and header in dark mode

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

Checked on cswiki beta - the fix works:

Screen Shot 2024-06-28 at 10.11.07 AM.png (1×3 px, 321 KB)

I'm not seeing any issues in production.