#44619 closed enhancement (fixed)
Colorize plugin card compatibility icons
Reported by: | afragen | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.1 | Priority: | normal |
Severity: | trivial | Version: | 5.1 |
Component: | Site Health | Keywords: | has-patch has-screenshots servehappy |
Focuses: | Cc: |
Attachments (3)
Change History (24)
This ticket was mentioned in Slack in #core by afragen. View the logs.
6 years ago
This ticket was mentioned in Slack in #core-php by afragen. View the logs.
6 years ago
This ticket was mentioned in Slack in #design by afragen. View the logs.
6 years ago
#7
@
6 years ago
Thanks @afragen! The red should be #C62D2D
. I'm a little unsure about the green — we don't seem to have a green that passes AA on the card background color, #FAFAFA
. Closest we have is #31843F
, which is AA+. I'm not sure if color contrast is absolutely integral because there's also supportive text — I'll want a second a11y opinion.
This ticket was mentioned in Slack in #accessibility by afragen. View the logs.
6 years ago
#9
@
6 years ago
Thanks @melchoyce! I’ve pinged the #a11y channel. I’ll update the patch once we get some more feedback.
#10
@
6 years ago
@melchoyce @afragen the relevant guideline would be 1.4.11 https://www.w3.org/TR/WCAG21/#non-text-contrast, which says ”Parts of graphics required to understand the content” should have at least 3:1 contrast. Since the symbols have supportive text as you say, the icons are not required to understand the meaning. So the contrast requirement does not apply to meet AA. This is how I read it anyway.
#11
@
6 years ago
Another point: I checked the green suggested by @melchoyce with WebAIM’s colour contrast checker and it’s 4,09:1, which is sufficient for non-text content (3:1) anyway. So either way it should be OK. The green and red probably don’t have enough contrast in relation to each other, but that shouldn’t matter since the symbols also differ by shape.
#12
@
6 years ago
- Keywords dev-feedback ui-feedback needs-design removed
@melchoyce @Daniel-Koskinen thanks so much for the feedback.
This ticket was mentioned in Slack in #core-php by flixos90. View the logs.
6 years ago
This ticket was mentioned in PR #3401 on WordPress/wordpress-develop by c4rl0sbr4v0.
2 years ago
#17
Try to fix #44619
Testing instructions:
https://github.com/WordPress/gutenberg/issues/44619#issuecomment-1266866044
c4rl0sbr4v0 commented on PR #3401:
2 years ago
#18
cc/ @oandregal, would this approach be correct?
2 years ago
#20
I think this is working now 🎉
I was about to implement file caching for the parent theme (see https://github.com/WordPress/wordpress-develop/pull/3401#discussion_r986868064), but then it occurred to me that we might solve this slightly differently:
We can add a single $theme_json_file_cache
static var, and use it from within static::read_json_file()
.
c4rl0sbr4v0 commented on PR #3401:
2 years ago
#21
https://github.com/WordPress/wordpress-develop/pull/3408 does the work, so we can close this one.
CSS to colorize the plugin card compatibility icons