Opened 7 weeks ago

Closed 6 weeks ago

Last modified 6 weeks ago

#35809 closed Bug (fixed)

Background color for admin's m2m multi-select "selected" rows is lost in dark theme

Reported by: Giannis Terzopoulos Owned by: Natalia Bidart
Component: contrib.admin Version: 5.1
Severity: Release blocker Keywords: accessibility
Cc: Thibaud Colas, Tom Carrick, Sarah Abderemane, Eliana Rosselli Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: yes

Description

I noticed today that the color that is currently used for selected m2m items is indistinguishable. It might not be as noticeable to others, I'm not sure, I have some color difficulties. Only dark theme seems to be affected.

I am attaching 2 screenshots, how it looks on 5.1 and on 5.0.9

Attachments (2)

django_5.1.png (5.3 KB ) - added by Giannis Terzopoulos 7 weeks ago.
django_5.0.9.png (5.3 KB ) - added by Giannis Terzopoulos 7 weeks ago.

Download all attachments as: .zip

Change History (11)

by Giannis Terzopoulos, 7 weeks ago

Attachment: django_5.1.png added

by Giannis Terzopoulos, 7 weeks ago

Attachment: django_5.0.9.png added

comment:1 by Natalia Bidart, 7 weeks ago

Cc: eroselli added
Component: Uncategorizedcontrib.admin
Severity: NormalRelease blocker
Triage Stage: UnreviewedAccepted
Type: UncategorizedBug
UI/UX: set

Hello Giannis, thank you for your report!

I have tried to reproduce and these are my findings:

  • in Chrome, both light and dark mode have good contrast for the selected m2m, both when the m2m widget has focus and when it does not.
  • in Firefox, when using the dark theme, there is good contrast for when the m2m widget has focus but there is no color difference when the focus is moved to another element.

I bisected the regressing revno to be b47bdb4cd9149ee2a39bf1cc9996a36a940bd7d9

Would you like to prepare a patch?

comment:2 by Natalia Bidart, 7 weeks ago

Cc: Thibaud Colas Tom Carrick Sarah Abderemane Eliana Rosselli added; eroselli removed

Added Accessibility team as cc, would you have any recommendation?

comment:3 by Natalia Bidart, 7 weeks ago

Summary: Improved background color for admin's m2m multi-selectBackground color for admin's m2m multi-select "selected" rows is lost in dark theme

comment:4 by Tom Carrick, 7 weeks ago

Keywords: accessibility added

comment:5 by Natalia Bidart, 6 weeks ago

Owner: set to Natalia Bidart
Status: newassigned

comment:6 by Sarah Abderemane, 6 weeks ago

Hi Natalia,
I didn't check the code yet, but this might be an issue with the CSS class :focus on the element if there is one (or missing)
or it could be the change of ::-moz-focus-inner CSS class if the property exist in the CSS stylesheet. I can check deeper if needed :)

Last edited 6 weeks ago by Sarah Abderemane (previous) (diff)

comment:7 by Natalia Bidart, 6 weeks ago

Has patch: set

comment:8 by GitHub <noreply@…>, 6 weeks ago

Resolution: fixed
Status: assignedclosed

In 679d578:

Fixed #35809 -- Set background color for selected rows in the admin's form select widget.

Regression in b47bdb4cd9149ee2a39bf1cc9996a36a940bd7d9.

Thank you Giannis Terzopoulos for the review, and Tom Carrick and Sarah Boyce
for the review.

comment:9 by Natalia <124304+nessita@…>, 6 weeks ago

In 17fa7592:

[5.1.x] Fixed #35809 -- Set background color for selected rows in the admin's form select widget.

Regression in b47bdb4cd9149ee2a39bf1cc9996a36a940bd7d9.

Thank you Giannis Terzopoulos for the review, and Tom Carrick and Sarah Boyce
for the review.

Backport of 679d57816d716cbc7cff3b364ae265d70444ebd9 from main.

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