Bugzilla – Attachment 166979 Details for
Bug 36909
Eliminate duplicate ID in cookie consent markup
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36909: Eliminate duplicate ID in cookie consent markup
Bug-36909-Eliminate-duplicate-ID-in-cookie-consent.patch (text/plain), 5.41 KB, created by
Owen Leonard
on 2024-05-21 14:54:48 UTC
(
hide
)
Description:
Bug 36909: Eliminate duplicate ID in cookie consent markup
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2024-05-21 14:54:48 UTC
Size:
5.41 KB
patch
obsolete
>From ed7155cd721f00e029c4cbec00abb899ce67afb9 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 21 May 2024 14:47:21 +0000 >Subject: [PATCH] Bug 36909: Eliminate duplicate ID in cookie consent markup > >This patch changes markup and CSS in the OPAC and staff client to >eliminate HTML validator warnings about duplicate ids. > >To test, apply the patch and rebuild all CSS (Bug 36909: Eliminate >duplicate ID in cookie consent markup). > >- If necessary, set the "CookieConsent" system preference to "Require." >- Open the OPAC in a new private window (to prevent previous consents > from hiding the consent messages). >- You should see a cookie consent bar across the bottom of the page. It > should look correct, and its contents should reflow well at various > browser widths. >- Click "Accept all cookies." >- In the header you should now see a "Your cookies" link. >- Click it and confirm that the contents of the modal look correct and > reflow well at various browser widths. > >- Perform the same tests in the staff interface. >--- > koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss | 4 ++-- > koha-tmpl/intranet-tmpl/prog/en/includes/intranet-bottom.inc | 4 ++-- > koha-tmpl/opac-tmpl/bootstrap/css/src/_responsive.scss | 2 +- > koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc | 4 ++-- > 5 files changed, 8 insertions(+), 8 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 a0ba90ad5d..7436fb17a7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >+++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >@@ -4688,7 +4688,7 @@ div .suggestion_note { > } > } > >-#consentButtons { >+.consentButtons { > flex-grow: 1; > margin-top: 10px; > text-align: left; >@@ -4829,7 +4829,7 @@ div .suggestion_note { > @import "forms"; > > @media only screen and ( min-width: 608px ) { >- #consentButtons { >+ .consentButtons { > text-align: right; > white-space: nowrap; > } >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/intranet-bottom.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/intranet-bottom.inc >index 24572c2a3a..f4055268e2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/intranet-bottom.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/intranet-bottom.inc >@@ -92,7 +92,7 @@ > [%- END -%] > </div> > [% END %] >- <div id="consentButtons"> >+ <div class="consentButtons"> > [% IF ( JSConsents.all('staffConsent').size ) %] > <button type="button" class="btn btn-primary consentAcceptAll">Accept all cookies</button> > [% END %] >@@ -131,7 +131,7 @@ > </div> > </div> > <div class="modal-footer"> >- <div id="consentButtons"> >+ <div class="consentButtons"> > <button type="button" class="btn btn-primary consentAcceptEssential">Accept essential cookies</button> > [% IF ( JSConsents.all('staffConsent').size ) %] > <button type="button" class="btn btn-primary consentAcceptAll">Accept all cookies</button> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/_responsive.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/_responsive.scss >index e24fb0773c..3339e0c919 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/css/src/_responsive.scss >+++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/_responsive.scss >@@ -279,7 +279,7 @@ > > } > >- #consentButtons { >+ .consentButtons { > text-align: right; > white-space: nowrap; > } >diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss >index f0e99ebf61..078806aa79 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss >+++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss >@@ -2938,7 +2938,7 @@ $star-selected: #EDB867; > } > } > >-#consentButtons { >+.consentButtons { > flex-grow: 1; > margin-top: 10px; > text-align: left; >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >index 682a0656a8..d657d643c7 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >@@ -468,7 +468,7 @@ > [% PROCESS koha_news_block news => CookieConsentBar %] > </div> > [% END %] >- <div id="consentButtons"> >+ <div class="consentButtons"> > [% IF ( JSConsents.all('opacConsent').size ) %] > <button type="button" class="btn btn-primary consentAcceptAll">Accept all cookies</button> > [% END %] >@@ -505,7 +505,7 @@ > </div> > </div> > <div class="modal-footer"> >- <div id="consentButtons"> >+ <div class="consentButtons"> > <button type="button" class="btn btn-primary consentAcceptEssential">Accept essential cookies</button> > [% IF ( JSConsents.all('opacConsent').size ) %] > <button type="button" class="btn btn-primary consentAcceptAll">Accept all cookies</button> >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36909
:
166979
|
167061