From 117bca1fc5f086c204043344dbee66259775109b Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Sat, 10 Jul 2021 17:25:41 +0300 Subject: [PATCH] Fix CSS class override for admin forms. Fixes #2404 applies white color to error message text so that it is more visible on the red background. --- tcms/static/style/patternfly_override.css | 9 +++++++-- tcms/templates/admin/base_site.html | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tcms/static/style/patternfly_override.css b/tcms/static/style/patternfly_override.css index 9c9f5abefa..de4dcb6286 100644 --- a/tcms/static/style/patternfly_override.css +++ b/tcms/static/style/patternfly_override.css @@ -12,8 +12,13 @@ nav.navbar-default { border-top-color: #3C8D2C; } /* continue with styles for Kiwi TCMS */ -/* todo: used in form error messages, can be improved */ -.errorlist { background: #AF2B2B; border:1px solid #6F1B1B; color:#FFF; font-weight:bold; } +/* used in regular/admin form error messages */ +.errorlist, p.errornote + ul.errorlist { + background: #AF2B2B; + border:1px solid #6F1B1B; + color:#FFF; + font-weight:bold; +} /* typeahead.js styling for autocomplete */ .tt-menu { diff --git a/tcms/templates/admin/base_site.html b/tcms/templates/admin/base_site.html index 124b32b797..a391d0aa67 100644 --- a/tcms/templates/admin/base_site.html +++ b/tcms/templates/admin/base_site.html @@ -10,7 +10,8 @@ {% endblock %} {% block extrastyle %} - + + {% endblock %} {% block javascripts %}