#56604 closed defect (bug) (fixed)
Dark blue closing cross over the black background in plugins page
Reported by: | dperonne | Owned by: | joedolson |
---|---|---|---|
Milestone: | 6.2 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Plugins | Keywords: | good-first-bug has-patch commit |
Focuses: | ui, accessibility, css, administration | Cc: |
Description
When you consult the details of a plugin by clicking on "show details", the closing cross of the popup is dark blue. It's hard to see it over the black background.
Possible to change to a light color?
Attachments (8)
Change History (27)
#1
@
2 years ago
- Focuses accessibility css administration added
- Severity changed from trivial to normal
- Type changed from enhancement to defect (bug)
- Version trunk deleted
Hi and thanks for the report!
The hover/focus blue does not have enough contrast against the dark background.
.plugin-details-modal #TB_closeWindowButton:hover, .plugin-details-modal #TB_closeWindowButton:focus { color: #135e96; outline: none; box-shadow: none; }
One option is replacing the color change with a light outline and editing the button width (the icon would still be the light gray):
.plugin-details-modal #TB_closeWindowButton { padding-right: 3px; width: 32px; right: -34px; } .plugin-details-modal #TB_closeWindowButton:hover, .plugin-details-modal #TB_closeWindowButton:focus { outline: 2px solid #f0f0f1; outline-offset: -2px; }
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
2 years ago
This ticket was mentioned in PR #3376 on WordPress/wordpress-develop by jeawhanlee.
2 years ago
#5
- Keywords has-patch added; needs-patch removed
Updated the close button color of the plugin details popup.
Trac ticket: 56604
#6
@
2 years ago
@sabernhardt Are you preferring to change CSS for close button position or it can be simple to update the color of the icon as per the PR https://github.com/WordPress/wordpress-develop/pull/3376?
#7
@
2 years ago
- Keywords changes-requested added
Thanks for the patch!
I do not think changing the button's position is necessary, unless we replace the entire Thickbox dialog with a new one similar to the Theme details (not on this ticket).
The light gray icon color in the patch does not work as a hover/focus style because that matches the un-focused style. Using Blue 10 (#9ec2e6
) would stand out better than the dark blue, but the focus style ideally would be more obvious than only changing the color.
This ticket was mentioned in Slack in #accessibility by sabernhardt. View the logs.
2 years ago
#9
@
23 months ago
Additionally: the focus style can't be based only on color change. It needs to use a shape that can be perceived regardless of color perception impairments.
This ticket was mentioned in Slack in #accessibility by ryokuhi. View the logs.
20 months ago
#13
@
20 months ago
- Keywords commit added; changes-requested removed
Updated patch to add a focus state indicator that's not purely dependent on color. Patch adds a 2px white outline on focus/hover.
This was missing from the PR by @jeawhanlee, and improves on the 1px border added in the patch by @viralsampat. Using outline avoids a shift of position.
#15
@
20 months ago
- Keywords 2nd-opinion added; commit removed
Added a patch that uses #9ec236
, per @sabernhardt's comment above. Not sure I care for it from a design perspective; could use a 2nd opinion.
Screenshot of the closing cross