From c57a0d4efcadc98d3dcca84e9fa6d64f4fa3d63d Mon Sep 17 00:00:00 2001 From: Leonidas Apostolidis Date: Tue, 26 Nov 2024 09:59:25 +0000 Subject: [PATCH] Focus on the cookie banner before the skip to main content This ensures users can interact with important content before navigating the rest of the page. --- app/views/layouts/_application.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/_application.html.erb b/app/views/layouts/_application.html.erb index 7f9b0c7c9c..b10be5fae5 100644 --- a/app/views/layouts/_application.html.erb +++ b/app/views/layouts/_application.html.erb @@ -61,12 +61,12 @@ height="0" width="0" style="display:none;visibility:hidden"> - Skip to main content - <% unless cookies[:cookie_consent_1] || current_page?(cookies_path) %> <%= render "cookies/banner" %> <% end %> + Skip to main content + <%= govuk_header(service_name:, container_classes: ("govuk-width-container__wide" if wide_container_view?)) do |header| if user_signed_in? header.with_navigation_item(text: "Sign out", href: destroy_user_session_path)