From 860851e77458682b8b27c500bff2445dd0defa0f 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 --- .../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 3aae3be904..5daab46393 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; @@ -958,6 +964,7 @@ label, &.required { color: $warning-text-color; + margin-left: .5em; } } @@ -3469,11 +3476,6 @@ a.browse-button { } } -.required { - color: $warning-text-color; - font-style: italic; -} - span { &.browse-button { color: #999; @@ -3495,6 +3497,8 @@ span { } &.required { + color: $warning-text-color; + font-style: italic; margin-left: .5em; } -- 2.43.0