Browse Source

Fixed #35558 -- Increased inline H3 headers color prominence in admin change page.

Sarah Boyce 9 months ago
parent
commit
e510bb1ab1

+ 4 - 0
django/contrib/admin/static/admin/css/forms.css

@@ -390,6 +390,10 @@ body.popup .submit-row {
     border-right-color: var(--darkened-bg);
 }
 
+.inline-related h3 {
+    color: var(--body-loud-color);
+}
+
 .inline-related h3 span.delete {
     float: right;
 }

BIN
docs/intro/_images/admin10t.png


BIN
docs/intro/_images/admin14t.png


+ 2 - 0
tests/admin_inlines/tests.py

@@ -1858,6 +1858,7 @@ class SeleniumTests(AdminSeleniumTestCase):
             username="super", password="secret", email="super@example.com"
         )
 
+    @screenshot_cases(["desktop_size", "mobile_size", "dark", "high_contrast"])
     def test_add_stackeds(self):
         """
         The "Add another XXX" link correctly adds items to the stacked formset.
@@ -1878,6 +1879,7 @@ class SeleniumTests(AdminSeleniumTestCase):
         )
         add_button.click()
         self.assertCountSeleniumElements(rows_selector, 4)
+        self.take_screenshot("added")
 
     def test_delete_stackeds(self):
         from selenium.webdriver.common.by import By