From 16a05fa41aa4d5902b6105916f81e3304120e243 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 22 Feb 2024 12:10:16 +0000 Subject: [PATCH] Bug 34478: Fix style and markup of forms within dropdowns This patch adds some CSS for handling the style of form buttons inside Bootstrap dropdowns and corrects related markup in two places: Authority search results and Suggestion management. Buttons should look correct if we avoid using
inside dropdowns and make sure the button has "btn btn-default" classes. Signed-off-by: Jonathan Druart --- .../prog/css/src/staff-global.scss | 24 +++++++++++++++++++ .../modules/authorities/searchresultlist.tt | 4 +--- .../prog/en/modules/suggestion/suggestion.tt | 16 ++++++------- 3 files changed, 32 insertions(+), 12 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 4d73c7b019..fe046ab43d 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -1387,6 +1387,30 @@ dd { text-decoration: none; } } + + button { + &.btn { + background-color: transparent; + border: 0; + border-radius: 0; + clear: both; + color: #333; + display: block; + font-weight: 400; + line-height: 1.4285; + padding: 3px 20px; + text-align: left; + white-space: nowrap; + width: 100%; + + &:hover { + background-color: #DADADA; + background-image: none; + color: #000; + text-decoration: none; + } + } + } } } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt index 28e9d1d0d6..07fdd6559c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt @@ -124,9 +124,7 @@ -
- -
+ [% END %]
  • diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt index 9db14cb3a3..998c148025 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -862,18 +862,16 @@ Edit -- 2.39.5