mirror of
https://github.com/django/django.git
synced 2025-09-18 06:59:12 +00:00
Fixed #36601 -- Fixed color contrast of FilteredSelectMultiple widget chosen labels in TabularInlines.
Regression in a0f50c2a483678d31bd1ad6f08fd3a0b8399e27b.
This commit is contained in:
parent
606fc35279
commit
1e7728888d
@ -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`).
|
||||
|
@ -2558,3 +2558,15 @@ class SeleniumTests(AdminSeleniumTestCase):
|
||||
self.assertTrue(object_str.is_displayed())
|
||||
self.assertIn("Desert", object_str.text)
|
||||
self.take_screenshot("tabular")
|
||||
|
||||
@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