Problem/Motivation
Some of the icons in Drupal core icons have low colour contrast.
It's expected that some do not have sufficient contrast to satisfy the forthcoming WCAG 2.1 update, which introduces new success criteria for colour contrast of UI graphics (such as icons and buttons): Success Criterion 1.4.11 Non-text Contrast
We should review our icons as part of our overall WCAG 2.1 plan - #2864791: Implement new Success Criteria from WCAG 2.1.
Proposed resolution
Review all our icons, checking for conformance with 1.4.11 Non-text Contrast.
Update designs / colours so the icons have stronger contrast.
Remaining tasks
Review colour contrast for all icons in Drupal core.
Maybe use child issues to address them (individually, or in groups if they are part of a related set).
Icons to review
TODO: clarify exactly which icons we mean (e.g. filenames)
- toolbar module icons
- Warning indicator images
- Contextual link module (FAIL, see comment #5)
- Search module - the search block's icon button.
- Shortcut module's star icon
- RSS icon
- Forum module icons
- File type icons
- default user picture
- Media module icons
- settings icon, used in Field UI
- workspace icons, these have multiple colours
- icons on status report page
- summary/details elements - triangular disclosure icon
- Modules page - help, configure, permissions links (inside collapsible details of enabled modules)
- Icons for "close" on dialogs + off-canvas
- CKEditor toolbar theme, possibly file issues with the upstream project
- drop-button component
- button icons in Layout Builder module - add section, add block, remove section.
- OTHERS ?
User interface changes
Design changes! Improve colour contrast for icons across Drupal core.
Affects Bartik, Seven, and some graphics from modules such as Toolbar, Tour, CKEditor, etc.
API changes
None expected.
Data model changes
None expected.
Original report by @travis.d.peltier
IE11 browser
The following items failed color contrast ratio standards:
- Drupal tool icon
- Warning indicator images
Comments
Comment #2
andrewmacpherson commented@travis.d.peltier - thanks for filing this issue.
For Drupal core, we are primarily concerned with W3C recommendations (principally WCAG 2.0 and ATAG 2.0 at AA level). We don't specifically aim to satisfy Section 508, which is USA-specific. (If we had to consider all the separate regulations and standards for every country in the world it would be far too much too manage. The long-overdue section 508 refresh is expected to indicate the use of WCAG anyway.)
Technically, images are exempt from WCAG 2.0 success criteria 1.4.3 (which only applies to text). However we do intend to address WCAG 2.1 in time, and these images will fall under the new Success Criterion 1.4.11 Graphics Contrast. So this is definitely a live issue :-)
I've made this issue part of our overall plan to address WCAG 2.1 in Drupal core, and refined the issue scope. We'll probably spin off some child issues for individual icons.
Comment #3
andrewmacpherson commentedNothing done as yet, just alerting interested parties :-)
Comment #4
travis.d.peltier commentedThank you for the reply and I will continue to monitor. :)
Comment #5
andrewmacpherson commentedExpanded the list of icons to review.
The contextual link buttons currently fail WCAG SC 1.4.11 Non-text contrast.
Also should review how icons look on Umami theme. For example, the buttons from Contextual Links module (border: #CCC currently) will be overlaid on top of Bartik's blue and white backgrounds, AND Umami's pink-beige background. So either the module CSS colours need to work for both, OR a theme can provide it's own colours for contextual link buttons.
Comment #6
andrewmacpherson commentedThe "Graphics Contrast" and "User Interface Component Contrast" success criteria were merged into "Non-text contrast" in the final version of WCAG 2.1
Comment #7
andrewmacpherson commentedComment #8
avpadernoComment #11
mgiffordtagging
Comment #16
mgiffordComment #18
anicoto