1
0
mirror of https://github.com/django/django.git synced 2025-04-01 12:06:43 +00:00

[4.2.x] Fixed #34638 -- Fixed admin change list selected row highlight on editable boolean fields.

Regression in 0aa2f16e63887d6053f6fd0da19254fc74c750ae.

Thanks Andrei Shabanski for the report.

Backport of 1d9d32389c652edc56ada65116d39789896f4820 from main.
This commit is contained in:
Neeraj Kumar 2023-06-07 02:13:57 +05:30 committed by Mariusz Felisiak
parent 31d1fc36b3
commit 9e9a286bed
2 changed files with 6 additions and 2 deletions

View File

@ -257,11 +257,11 @@
/* Once the :has() pseudo-class is supported by all browsers, the tr.selected
selector and the JS adding the class can be removed. */
#changelist table tbody tr.selected {
#changelist tbody tr.selected {
background-color: var(--selected-row);
}
#changelist table tbody tr:has(input[type=checkbox]:checked) {
#changelist tbody tr:has(.action-select:checked) {
background-color: var(--selected-row);
}

View File

@ -11,3 +11,7 @@ Bugfixes
* Fixed a regression in Django 4.2 that caused incorrect alignment of timezone
warnings for ``DateField`` and ``TimeField`` in the admin (:ticket:`34645`).
* Fixed a regression in Django 4.2 that caused incorrect highlighting of rows
in the admin changelist view when ``ModelAdmin.list_editable`` contained a
``BooleanField`` (:ticket:`34638`).