From ce366d1442e7f2e711728f1290fa9f64e836e969 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 2 Aug 2018 13:46:31 +0000 Subject: [PATCH] Bug 21148: Dropdowns styled by the Select2 plugin do not highlight missing required fields This patch adds some CSS to target mandatory fields on the add item screen which are styled by the Select2 plugin. To test you must have at least one item field marked mandatory and linked to an authorized value. Open the add item form for an existing record. Try to submit the form without making a selection in the mandatory dropdown. You should get an alert warning you that you have empty mandatory fields, and the field should be highlighted in yellow. Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/css/select2.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/css/select2.css b/koha-tmpl/intranet-tmpl/prog/css/select2.css index 82367f6120..c9550fd308 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/select2.css +++ b/koha-tmpl/intranet-tmpl/prog/css/select2.css @@ -6,3 +6,7 @@ background: initial; background-color : #FFFF99; } + +.select2-container.missing .select2-choice { + background: #ffc none; +} \ No newline at end of file -- 2.17.1