mirror of
https://github.com/django/django.git
synced 2025-09-18 15:09:12 +00:00
[5.2.x] Fixed #36601 -- Fixed color contrast of FilteredSelectMultiple widget chosen labels in TabularInlines.
Regression in a0f50c2a483678d31bd1ad6f08fd3a0b8399e27b. Backport of 1e7728888dbbff437ad9847c82b84feb81f785df from main.
This commit is contained in:
parent
1dbf415a18
commit
d8e9dec1ad
@ -49,7 +49,7 @@
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.aligned .selector-chosen-title label {
|
||||
.selector-chosen-title label {
|
||||
color: var(--header-link-color);
|
||||
width: 100%;
|
||||
}
|
||||
@ -60,7 +60,7 @@
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.aligned .selector-available-title label {
|
||||
.selector-available-title label {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
@ -9,4 +9,6 @@ Django 5.2.7 fixes several bugs in 5.2.6.
|
||||
Bugfixes
|
||||
========
|
||||
|
||||
* ...
|
||||
* Fixed a regression in Django 5.2 that reduced the color contrast of
|
||||
the chosen label of ``filter_horizontal`` and ``filter_vertical`` widgets
|
||||
within a ``TabularInline`` (:ticket:`36601`).
|
||||
|
@ -2525,3 +2525,15 @@ class SeleniumTests(AdminSeleniumTestCase):
|
||||
delete.get_attribute("innerHTML"),
|
||||
)
|
||||
self.take_screenshot("loaded")
|
||||
|
||||
@screenshot_cases(["desktop_size", "mobile_size", "rtl", "dark", "high_contrast"])
|
||||
def test_tabular_inline_with_filter_horizontal(self):
|
||||
from selenium.webdriver.common.by import By
|
||||
|
||||
self.admin_login(username="super", password="secret")
|
||||
self.selenium.get(
|
||||
self.live_server_url + reverse("admin:admin_inlines_courseproxy2_add")
|
||||
)
|
||||
m2m_widget = self.selenium.find_element(By.CSS_SELECTOR, "div.selector")
|
||||
self.assertTrue(m2m_widget.is_displayed())
|
||||
self.take_screenshot("tabular")
|
||||
|
Loading…
x
Reference in New Issue
Block a user