#33727: Color contrast issues in admin header area
-------------------------------------+-------------------------------------
               Reporter:  Thibaud    |          Owner:  nobody
  Colas                              |
                   Type:  Bug        |         Status:  new
              Component:             |        Version:  dev
  contrib.admin                      |       Keywords:  accessibility,
               Severity:  Normal     |  color contrast
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  1          |
-------------------------------------+-------------------------------------
 There are three color contrast issues in the Django admin area:

 - The `<h1>`’s yellow only has enough contrast against the blue for large
 text, which is defined by [https://www.w3.org/WAI/WCAG21/Understanding
 /contrast-minimum.html SC 1.4.3: Contrast (Minimum)] as 18pt and up
 (24px). This works for large viewports, but on smaller ones the heading’s
 font size is reduced to 20px / 1.25rem, which is too small to qualify as
 large text.
 - In light mode, the links’ hover color doesn’t have enough contrast with
 the background
 - In dark mode, same issue with the links’ hover color (but with a
 different color)

 Here is a [https://contrast-grid.eightshapes.com/?version=1.1.0
 &background-colors=%23417690%2C%20--header-bg&foreground-
 colors=%23f5dd5d%2C%20--accent%0D%0A%23264b5d%2C%20--
 primary%20(dark)%0D%0A%2379aec8%2C%20--primary%20(light)&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 contrast grid] with the relevant color contrasts.

 And a screenshot of two out of three issues:



 ---

 My recommended solutions for this are to:

 - Keep the "small viewport" heading at 24px
 - Change the hover effect for links in the header – either remove it (with
 the cursor change only), or remove the text underline rather than changing
 the color.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33727>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070180de8682fa-d47eb683-dbac-48b8-9688-7c50256acdbd-000000%40eu-central-1.amazonses.com.

Reply via email to