Opened 13 months ago
Closed 10 months ago
#34910 closed Bug (fixed)
Color Contrast Admin Plus Icon
Reported by: | laserhyena | Owned by: | Hisham Mahmood |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Normal | Keywords: | accessibility, color contrast |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | yes |
Description
Identified using automated checks with Axe. When in Light Mode/Theme, Axe reports a contrast ratio of 2.2:1 for the Django Admin's plus icon. For icons, this should be at least 3:1, as seen in the W3C documentation for Technique G207.
To reproduce, visit the Django Admin and locate one of the green plus symbols. Potential new value for the green is represented by # 5fa225.
Please note the new green should result in acceptable color contrast for both Light and Dark mode.
Change History (6)
comment:1 by , 13 months ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 10 months ago
Admin change icon needs better contrast too.
Comparison of before/after color, confirming the proposed shade: contrast-grid.
comment:3 by , 10 months ago
Has patch: | set |
---|---|
Owner: | changed from | to
Pull request: https://github.com/django/django/pull/17744
comment:4 by , 10 months ago
Patch needs improvement: | set |
---|
Setting as patch needs improvement following Thibaud's comment.
Thank you @laserhyena!
Link to technique: https://www.w3.org/WAI/WCAG21/Techniques/general/G207.html
Comparison of before/after color, confirming the proposed shade: https://contrast-grid.eightshapes.com/?version=1.1.0&background-colors=%23121212%2CDark%0D%0A%23ffffff%2CWhite%0D%0A&foreground-colors=83BC47%2CGreen%20as-is%0D%0A5fa225%2CGreen%20new&es-color-form__tile-size=compact&es-color-form__show-contrast=aaa&es-color-form__show-contrast=aa&es-color-form__show-contrast=aa18&es-color-form__show-contrast=dnp