From 7c48ba011687678ab18ca24217fdd4094fe67511 Mon Sep 17 00:00:00 2001 From: taitus Date: Mon, 9 Dec 2024 16:37:01 +0100 Subject: [PATCH] Do not display the cookie banner when JS is disabled --- app/assets/stylesheets/noscript.scss | 5 +++++ app/components/layout/footer_component.html.erb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/noscript.scss b/app/assets/stylesheets/noscript.scss index 2c77aaede..2dd734199 100644 --- a/app/assets/stylesheets/noscript.scss +++ b/app/assets/stylesheets/noscript.scss @@ -7,3 +7,8 @@ .check-all-none { display: none; } + +.cookies-consent-banner, +.cookies-consent-management-footer-content { + display: none; +} diff --git a/app/components/layout/footer_component.html.erb b/app/components/layout/footer_component.html.erb index f7d0cfd89..297bed666 100644 --- a/app/components/layout/footer_component.html.erb +++ b/app/components/layout/footer_component.html.erb @@ -29,7 +29,7 @@
  • <%= link_to t("layouts.footer.conditions"), page_path("conditions") %>
  • <%= link_to t("layouts.footer.accessibility"), page_path("accessibility") %>
  • <% if feature?(:cookies_consent) %> -
  • +