Consent (cookies) management improvements
We took the opportunity of an update to the new major version of the Cookies module to make a few improvements. Accessibility tests had rightly pointed out that some elements were semantically incorrect and not accessible, namely:
- Empty links that should be buttons
- Behaviour of the settings dialog
Furthermore, it was difficult to figure out where to adjust the settings so that the cookie banner wouldn't cover relevant pages and, of all things, make them inaccessible (namely Privacy policy and Legal information).
We developed the module Cookies Popover that solves those issues and that is automatically installed with the update.
What you should do
Button instead of menu link
To transform the given menu link/s to buttons, edit the footer menu (via contextual link or Structure > Menus > Footer (/admin/structure/menu/manage/footer), here edit the link "Privacy settings" (or maybe "Cookie settings"):
- Menu link title (= the visible button text) unchanged or whatever suits your site
- Link: <button> (including the brackets)
- Expand Attributes, enter as Link class: editCookieSettings (exactly like that, otherwise the button won't work)
- Save
That's it. The Footer menu is re-used in the "burger menu", therefore the new button appears there, too.
Check cookie settings
Go to Configuration > System > COOKiES (/admin/config/system/cookies/config)
- Is there a link to the privacy policy?
- Is there a link to the legal information page?
Then open both pages in an anonymous browser window: Does the cookie banner pop up? If yes, something went wrong. Maybe the links in the cookies settings do not point to the page/s in question. Check back at Structure > Block layout (/admin/structure/block), Block Cookies UI (region Branding by default). The system links of the two pages ("/node/[nid]") should be listed as restrictions under Pages.