From a026d138e7828f8b8dff20490bdf48408c906803 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 1 May 2025 21:05:55 +0000 Subject: [PATCH] Bug 39809: .required class was made too non-specific in Bootstrap upgrade This patch corrects some CSS which was broken during the upgrade to Bootstrap 5. The .required class should not add any style differences to form fields. To test, apply the patch and rebuild the staff interface CSS. - Go to Administration -> Patron categories. - Edit an existing category. - Confirm that the contents of input fields are not styled red and italic. Signed-off-by: David Nind Signed-off-by: Caroline Cyr La Rose Signed-off-by: Lucas Gass (cherry picked from commit 49886627039e84e87934bf7dbf76662971d38119) Signed-off-by: Paul Derscheid --- .../intranet-tmpl/prog/css/src/staff-global.scss | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 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 bfc3ee3266..d0c509ccb0 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -581,6 +581,12 @@ div { } } + &.required { + color: $warning-text-color; + font-style: italic; + margin-left: .5em; + } + // Tools > automatic_item_modification_by_age &.rules { display: block; @@ -966,6 +972,7 @@ label, &.required { color: $warning-text-color; + margin-left: .5em; } } @@ -3487,11 +3494,6 @@ a.browse-button { } } -.required { - color: $warning-text-color; - font-style: italic; -} - span { &.browse-button { color: #999; @@ -3513,6 +3515,8 @@ span { } &.required { + color: $warning-text-color; + font-style: italic; margin-left: .5em; }