Make WordPress Core

Opened 6 months ago

Closed 4 months ago

#65419 closed defect (bug) (fixed)

In the Add Themes and Plugins page, active tabs are not visible in Windows High Contrast Mode

Reported by: wildworks Owned by: joedolson
Priority: normal Milestone: 7.1
Component: General Version:
Severity: normal Keywords: has-patch needs-testing commit
Cc: Focuses: accessibility

Description

In the Add Themes and Plugins page, active tabs are indicated by a colored bottom border. On the other hand, ​inactive tabs have a white-colored bottom border. When Windows High Contrast Mode is enabled, the border color of the active tab does not render, making it difficult for users to identify which tab is currently selected.

Attachments (3)

active-tab.png​ (64.2 KB ) - added by wildworks 6 months ago.
The difference between default mode and Windows High Contrast mode on the Add Themes and Add Plugins pages
theme active tab.png​ (14.9 KB ) - added by sanayasir 5 months ago.
plugin active tab.png​ (24.6 KB ) - added by sanayasir 5 months ago.

Download all attachments as: .zip

Change History (17)

@wildworks
6 months ago

The difference between default mode and Windows High Contrast mode on the Add Themes and Add Plugins pages

This ticket was mentioned in ​PR #12107 on ​WordPress/wordpress-develop by ​@nimeshatxecurify.


6 months ago
#1

  • Keywords has-patch added

This ensures that the current filter link is visually distinguishable when a high-contrast theme is enabled by using the Highlight system color for the bottom border.

Trac ticket: https://core.trac.wordpress.org/ticket/65419

## Use of AI Tools

N / A

#2 @manhar
6 months ago

Before the patch, the active tab indicator (colored bottom border) was not visible in High Contrast Mode, making it impossible to distinguish the active tab from inactive ones.

After applying the patch, the active tab is clearly visible and distinguishable from inactive tabs in High Contrast Mode.

Refer Below Images :

Before Patch :
​https://postimg.cc/cgK5PkKg

After Patch :
​https://postimg.cc/tYGmm59y

#3 @wildworks
6 months ago

Thanks for working on this.

After applying the patch, the active tab is clearly visible and distinguishable from inactive tabs in High Contrast Mode.

In Windows High Contrast Mode, a border is visually rendered even when transparent is specified for the border color. While ​PR 12107 does indeed differentiate border colors between active and inactive tabs, Windows High Contrast Mode is fundamentally used by users with low vision, color vision deficiencies, or light sensitivity to improve readability by increasing the contrast between text and background. Users relying on Windows High Contrast Mode may not necessarily be able to distinguish between active and inactive border colors. Therefore, I believe borders should not be rendered at all for inactive tabs.

#4 @abdullahramzan
6 months ago

  • Keywords needs-testing added

This ticket was mentioned in ​Slack in #core by abdullahramzan. ​View the logs.


6 months ago

This ticket was mentioned in ​Slack in #accessibility by joedolson. ​View the logs.


5 months ago

#7 @joedolson
5 months ago

  • Milestone Awaiting Review → 7.1
  • Owner set to joedolson
  • Status new → accepted

#8 @sanayasir
5 months ago

Tested the patch on a local WordPress installation.

Before applying the patch, the active tab indicator was difficult to identify when Windows High Contrast Mode was enabled because the bottom border was not visible.

After applying the patch, the active tab is clearly distinguishable in Windows High Contrast Mode, making it easier for users to identify the currently selected tab.

I did not observe any visual regressions in normal display mode.

Patch tested successfully. ✅

#9 @r1k0
5 months ago

  • Keywords needs-testing removed

Test Report

Patch tested: ​https://github.com/WordPress/wordpress-develop/pull/12107

Environment

  • WordPress: 7.1-alpha-62161-src
  • Subdirectory: No
  • PHP: 8.3.31
  • Server: nginx/1.31.1
  • Database: mysqli (Server: 8.4.9 / Client: mysqlnd 8.3.31)
  • Browser: Chrome 149.0.0.0
  • OS: Windows 10/11
  • Theme: Twenty Twenty-Five 1.5
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.3.0

Steps taken

  1. Turn on Windows high contrast mode.
  2. Head to Add Theme & Add Plugin page and check if inactive tabs are indicated by a colored bottom border before and after the patch.
  3. ✅ Patch is solving the problem

Expected result

  • Inactive tabs don't have a bottom border now. Users using Windows High Contrast can differentiate the state of the tabs.

Additional Notes

In Windows High Contrast Mode, a border is visually rendered even when transparent is specified for the border color. While PR 12107 does indeed differentiate border colors between active and inactive tabs, Windows High Contrast Mode is fundamentally used by users with low vision, color vision deficiencies, or light sensitivity to improve readability by increasing the contrast between text and background. Users relying on Windows High Contrast Mode may not necessarily be able to distinguish between active and inactive border colors. Therefore, I believe borders should not be rendered at all for inactive tabs.

  • With the current update of border-bottom-color: Canvas;, it fixes the issue mentioned above.

Screenshots/Screencast with results

  • Updating ticket keywords by removing needs-testing unless further testing is required.
Before After
Add Plugin Page
https://i.ibb.co/1YxBGG1f/plugin-before.png https://i.ibb.co/1VczGsc/plugin-after.png
Add Theme Page
https://i.ibb.co/Lzv0B0WD/theme-before.png https://i.ibb.co/twNs2DZY/theme-after.png

#10 @jamesbregenzer
5 months ago

I tested ​PR 12107 locally.

Environment:

  • WordPress: trunk with PR 12107 applied
  • OS: Windows 11
  • Browsers tested:
    • Chrome 149
    • Edge 149
    • Firefox 151
  • Display mode: Windows High Contrast / forced-colors mode
  • Pages tested: Add Plugins and Add Themes

Results:

  • Confirmed the active tab is visually distinguishable in forced-colors mode.
  • Confirmed inactive tabs no longer show the misleading bottom border.
  • Confirmed the Add Plugins and Add Themes tab states remain understandable in normal display mode.
  • Checked the browser console while testing and did not observe related errors.
  • I did not observe visual regressions in the tested environment.

This looks good in my testing.

#11 @nimeshatxecurify
4 months ago

  • Keywords needs-testing added

This ticket was mentioned in ​Slack in #accessibility by joedolson. ​View the logs.


4 months ago

#13 @joedolson
4 months ago

  • Keywords commit added

The PR is good, and achieves the intended goal. However, the outline offset of -2px causes the outline to impinge on the borders of the text. I don't think this offset is necessary for any reason; just copied from previous iterations, which used it for case-specific reasons.

I'm going to mark this for commit, but remove the outline offset in commit.

#14 @joedolson
4 months ago

  • Resolution → fixed
  • Status accepted → closed

In 62812:

Administration: Active tabs in Windows High Contrast Mode.

On the plugins and themes screens, the currently active tab could not be distinguished in Windows High Contrast mode, because both current and inactive tabs were marked using a bottom border color.

Add a transparent outline visible in Windows High Contrast mode.

Developed in ​https://github.com/WordPress/wordpress-develop/pull/12107

Props wildworks, nimeshatxecurify, dervishov, manhar, abdullahramzan, sanayasir, r1k0, jamesbregenzer, joedolson.
Fixes #65419.

Note: See TracTickets for help on using tickets.