From 7a21991ce8dd5ad7d7acdad1909f3f13c38af101 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 17 Jun 2020 15:52:53 +0000 Subject: [PATCH] Bug 25727: (follow-up) Use CSS specificity rather than !important This patch adds specificty to the CSS which controls the "invalid" appearance of a Select2 dropdown so that the use of "!important" can be avoided. --- koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss index c8c8d94d6b..da7740fd6d 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -1535,12 +1535,14 @@ input[type='text']:read-only:focus { font-style: italic; } -.subfield_not_filled { - background-color: #FFFF99 !important; +.subfield_not_filled, +.select2-container .select2-selection--single.subfield_not_filled { + background-color: #FFFF99; } -.important_subfield_not_filled { - background-color : #FFFFCC !important; +.important_subfield_not_filled, +.select2-container .select2-selection--single.important_subfield_not_filled { + background-color : #FFFFCC; } .content_hidden { -- 2.11.0