summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlton Gibson <carlton.gibson@noumenal.es>2022-08-17 13:38:19 +0200
committerCarlton Gibson <carlton@noumenal.es>2022-08-17 14:18:38 +0200
commite1056ed5a2004a6cd3a345eda5522abd9e1efb3d (patch)
tree92bd8b87cb4611fd1c26353fa421c5aeaae034d7
parent0aa2f16e63887d6053f6fd0da19254fc74c750ae (diff)
Refs #33491 -- Split CSS selected-row highlight selectors.
Combined selectors break the whole rule where :has() is not supported, for example on Firefox. Thanks to Marcelo Galigniana for the report.
-rw-r--r--django/contrib/admin/static/admin/css/changelists.css5
1 files changed, 4 insertions, 1 deletions
diff --git a/django/contrib/admin/static/admin/css/changelists.css b/django/contrib/admin/static/admin/css/changelists.css
index aa872dcf70..80498eb2b7 100644
--- a/django/contrib/admin/static/admin/css/changelists.css
+++ b/django/contrib/admin/static/admin/css/changelists.css
@@ -260,7 +260,10 @@
/* 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 table tbody tr.selected {
+ background-color: var(--selected-row);
+}
+
#changelist table tbody tr:has(input[type=checkbox]:checked) {
background-color: var(--selected-row);
}