mirror of https://github.com/django/django.git
Fixed #34638 -- Fixed admin change list selected row highlight on editable boolean fields.
Regression in 0aa2f16e63
.
Thanks Andrei Shabanski for the report.
This commit is contained in:
parent
e9bd5b4876
commit
1d9d32389c
|
@ -257,19 +257,19 @@
|
||||||
|
|
||||||
/* Once the :has() pseudo-class is supported by all browsers, the tr.selected
|
/* Once the :has() pseudo-class is supported by all browsers, the tr.selected
|
||||||
selector and the JS adding the class can be removed. */
|
selector and the JS adding the class can be removed. */
|
||||||
#changelist table tbody tr.selected {
|
#changelist tbody tr.selected {
|
||||||
background-color: var(--selected-row);
|
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);
|
background-color: var(--selected-row);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (forced-colors: active) {
|
@media (forced-colors: active) {
|
||||||
#changelist table tbody tr.selected {
|
#changelist tbody tr.selected {
|
||||||
background-color: SelectedItem;
|
background-color: SelectedItem;
|
||||||
}
|
}
|
||||||
#changelist table tbody tr:has(input[type=checkbox]:checked) {
|
#changelist tbody tr:has(.action-select:checked) {
|
||||||
background-color: SelectedItem;
|
background-color: SelectedItem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,3 +11,7 @@ Bugfixes
|
||||||
|
|
||||||
* Fixed a regression in Django 4.2 that caused incorrect alignment of timezone
|
* Fixed a regression in Django 4.2 that caused incorrect alignment of timezone
|
||||||
warnings for ``DateField`` and ``TimeField`` in the admin (:ticket:`34645`).
|
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`).
|
||||||
|
|
Loading…
Reference in New Issue