From aeff85995d0c9890a460af42b9cd024afe37a05e Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 15 Jan 2021 19:15:06 +0000 Subject: [PATCH] Bug 27445: OPAC header tweaks for non-JavaScript users This patch makes some minor changes to the header menu in the OPAC visible only to users with JavaScript support. To test, apply the patch and rebuild the OPAC CSS (https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client). - View the OPAC with JS disabled in your browser. - The "Cart" button should not be visible. - The "List," "Log in," and "Search history" links should be styled blue like other links. - Log in to the OPAC and confirm that the "Welcome " link is also styled like other links. - Enable JavaScript and verify that the links appear and function just as they did before the patch. --- koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss | 13 +++++++++++++ koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc | 6 +++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss index a33ba13211..b6fca446a6 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss +++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss @@ -20,6 +20,19 @@ padding-left: 0; padding-right: 0; } + .dropdown-toggle::after { + border: 0; + } + + #listsmenu, + #user-menu, + .nav-item .login-link { + color: $links; + + &:hover { + color: $links-hover; + } + } } .js { diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc index 85cbb9a4b0..096131e7fb 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -27,7 +27,7 @@ [% END %]