Opened 12 years ago
Closed 12 years ago
#23513 closed defect (bug) (fixed)
Twenty Thirteen: color contrast should aim for WCAG2 level AA compliance
Reported by: | jorbin | Owned by: | |
---|---|---|---|
Milestone: | 3.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Bundled Theme | Keywords: | has-patch close |
Focuses: | Cc: |
Description (last modified by )
With a more complex color palette than the previous black (or gray) on white default themes, we will have to check contrast ratios more carefully, with a goal of 4.5:1 for body text, and 3:1 for large text, as recommended by WCAG 2.0 accessibility guidelines. For example:
The contrast between the beige and orange is a bit low. The ratio is currently 3.2:1 with f94a0a being the orange, If we switch to CA3C08, then we can bump the ratio to 4.6:1.
Even against white (#fff), the ratio is only 3.5:1.
Why is this important:
http://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html explains why 4.5:1 is a minimum that we should aim for. Essentially it greatly will increase the readabilty for people with low visual acuity (roughly people with 20/40 vision).
http://leaverou.github.com/contrast-ratio/ was used to check the ratios.
Since we're likely to have multiple contrast fixes, let's collect them all in this ticket.
Attachments (9)
Change History (33)
#3
@
12 years ago
- Description modified (diff)
- Summary changed from Twenty Thirteen contrast between orange and beige is low to Twenty Thirteen color contrast should aim for 4.5:1
#5
@
12 years ago
I did a quick audit of contrast ratios throughout the theme using the HTML5 Code Sniffer bookmarklet at http://squizlabs.github.com/HTML_CodeSniffer/. Note that this checker calculates ratios to 2 decimal places, so the results look slightly different than Aaron's on the same elements -- but my 3.19 is close enough to Aaron's 3.2, and both of them miss the 4.5 mark by a good bit.
Post Formats:
Std, Image: // white bg all links CR: 3.49:1. fixed in r23514. New CR: 5.0 Gallery: // yellow bg .page-links a CR 4.32:1 fixed in r23614 Aside, Link: // lt tan bg all links CR 3:19:1 fixed in r23514: new CR 4.6 Chat: // med tan bg, brown links ok Quote: // dk bg, orange links ok Status: // dk tan, white links ok Audio, Video: // orange bg, black links ok
Other Issues:
.form-allowed-tags CR 3.89:1 fixed in r23613 .site-footer h1, .site-footer h2, .site-footer h4, .site-footer h5, .site-footer h6 CR 1:1 see screenshot in comment 8! fixed in r23514. New CR: 18.4 .site-footer .widget a CR 4.27:1. note: same dark background as the Quote format, but with a tiny difference in link colors .site-footer a CR 3.36:1 note: this is the "proudly powered by" footer, not the dark widget area fixed in r23613
#7
@
12 years ago
- Summary changed from Twenty Thirteen color contrast should aim for 4.5:1 to Twenty Thirteen: color contrast should aim for 4.5:1
#8
follow-up:
↓ 9
@
12 years ago
http://cloud.stephanis.info/image/3e1l1F380U2z
h4 tags in the footersidebar are nearly impossible to see for people with good vision.
This one came in the Jetpack Gravatar widget -- you can see it up on stephanis.info
#9
in reply to:
↑ 8
@
12 years ago
Great catch, George -- turns out that the same is true of all Header levels except H3 (which is specifically styled since it's the widget-title for all the default widgets). Adding it to the master list.
#10
@
12 years ago
- Description modified (diff)
- Summary changed from Twenty Thirteen: color contrast should aim for 4.5:1 to Twenty Thirteen: color contrast should aim for WCAG2 level AA compliance
#11
@
12 years ago
As noted in the WCAG guidelines, the 4.5:1 level is required for normal text; large text (18+ points for normal weights or 14+ points for bold) requires 3:1; level AA is what we talked about, so I edited the title for accuracy. ref: http://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html
18pt ~= 24px; 14pt ~= 18.667px
#14
@
12 years ago
23513.page-links.2.diff uses the new higher-contrast link color in the white-on-orange and orange-on-white versions of .page-links . Contrast ratio is now 5.0.
#15
@
12 years ago
23513.shadesofgray.diff tweaks the gray text in the Powered By WordPress footer and the list of allowed tags on the comment form. New Contrast Ratio is 4.5.
#19
@
12 years ago
Not just yet -- I'll have one more this afternoon that I missed in my last pass through the list.
#20
@
12 years ago
23513-footerlinks.diff lightens the orange of links in footer widgets. Old CR was 4.3, new is 4.5.
#23512 was marked as a duplicate.