Opened 2 years ago

Last modified 10 months ago

#34038 closed Bug

Low text contrast and no visual cues for links within body text in admin UI — at Version 5

Reported by: Thibaud Colas Owned by:
Component: contrib.admin Version: 4.0
Severity: Normal Keywords: accessibility, color contrast, ux
Cc: William Claassen Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: yes

Description (last modified by Mariusz Felisiak)

The Django admin’s light theme uses a light blue for links within text, with no other distinction of what is a link. This is problematic for two reasons:

  • The current shade of blue, #447e9b, doesn’t have enough contrast against the white body background.
  • For people with color blindness, there is no visual cue that a link is a link.

For those reasons, I would recommend:

  • Changing the link color of --link-fg. My recommendation would be to use an ever-so-slightly darker #437c98 (1% less lightness in HSL representation)

- Introduce an underline for all links within body text, so they can be identified unambiguously.

Change History (5)

comment:1 by Mariusz Felisiak, 2 years ago

Triage Stage: UnreviewedAccepted

comment:2 by William Claassen, 2 years ago

Cc: William Claassen added
Owner: changed from nobody to William Claassen
Status: newassigned

comment:3 by William Claassen, 2 years ago

Has patch: set

A pull request has been added: PR. This includes:

  • Changing the default colour to a slightly darkened in light mode (-1% lightness in HSL colour space) as requested
  • Adding underline on hover for all default links (add/create links, breadcrumbs...) to make links easier to identify

comment:4 by Mariusz Felisiak, 2 years ago

Patch needs improvement: set

comment:5 by Mariusz Felisiak, 2 years ago

Description: modified (diff)
Easy pickings: set
Owner: William Claassen removed
Status: assignednew

The new color have enough contrast when the background is white. Unfortunately --link-fg is also used with yellow (#ffffcc) and gray backgrounds (#f8f8f8). We should make it even darker to meet AA standards, e.g. #417893.

Note: See TracTickets for help on using tickets.
Back to Top