From c29a9b58ff0c23bcac7f40da8987b19fb96143f3 Mon Sep 17 00:00:00 2001 From: David Cook Date: Wed, 13 Nov 2024 01:34:56 +0000 Subject: [PATCH] Bug 34778: (follow-up) convert label from 'span' to 'label' element MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also uses the "for" attribute to uniquely point to the correct checkbox. Signed-off-by: Emmanuel Bétemps --- koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss | 6 ++++++ .../bootstrap/en/includes/show-password-toggle.inc | 4 ++-- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss index 959bda1e27..5f182f644a 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss +++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss @@ -2975,4 +2975,10 @@ $star-selected: #EDB867; display: inline; } +fieldset.brief label.show-password-toggle-label { + display: inline; + font-weight: normal; + padding: 0; +} + @import "responsive"; diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/show-password-toggle.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/show-password-toggle.inc index 17a854b074..b7b804a591 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/show-password-toggle.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/show-password-toggle.inc @@ -1,4 +1,4 @@
- - Show password + +
diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt index 55e4ec3dd0..f3ed6992e8 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt @@ -249,7 +249,7 @@ - [% INCLUDE 'show-password-toggle.inc' %] + [% INCLUDE 'show-password-toggle.inc' checkbox_id_suffix='auth' %]
diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt index 312d2fead1..c86c5a8da1 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt @@ -204,7 +204,7 @@ - [% INCLUDE 'show-password-toggle.inc' %] + [% INCLUDE 'show-password-toggle.inc' checkbox_id_suffix='main' %]
-- 2.39.5