From 1c7a339a3db136a7e6db24511c1868f5ae3031db Mon Sep 17 00:00:00 2001 From: Dana Cotoran Date: Thu, 14 Jan 2021 11:55:58 +0000 Subject: [PATCH] Adjustments based on PR review - rename navigation_items_label to navigation_aria_label - move default value for navigation aria label to the layout_header template --- .../components/_layout_header.html.erb | 6 +++--- .../components/docs/layout_header.yml | 2 +- .../layout_header/_navigation_items.html.erb | 21 +++++++++---------- spec/components/layout_header_spec.rb | 4 ++-- 4 files changed, 16 insertions(+), 17 deletions(-) diff --git a/app/views/govuk_publishing_components/components/_layout_header.html.erb b/app/views/govuk_publishing_components/components/_layout_header.html.erb index e5bfbcb31b..f7043a703c 100644 --- a/app/views/govuk_publishing_components/components/_layout_header.html.erb +++ b/app/views/govuk_publishing_components/components/_layout_header.html.erb @@ -5,7 +5,7 @@ search ||= false search_left ||= false navigation_items ||= [] - navigation_items_label ||= false + navigation_aria_label ||= "Top level" remove_bottom_border ||= false search_left ||= false width_class = full_width ? "govuk-header__container--full-width" : "govuk-width-container" @@ -29,7 +29,7 @@ <%= render "govuk_publishing_components/components/layout_header/search" %>
- <%= render "govuk_publishing_components/components/layout_header/navigation_items", navigation_items: navigation_items, navigation_items_label: navigation_items_label %> + <%= render "govuk_publishing_components/components/layout_header/navigation_items", navigation_items: navigation_items, navigation_aria_label: navigation_aria_label %>
<% else %> @@ -38,7 +38,7 @@ <%= render "govuk_publishing_components/components/layout_header/header_logo", environment: environment, product_name: product_name %>
- <%= render "govuk_publishing_components/components/layout_header/navigation_items", navigation_items: navigation_items, navigation_items_label: navigation_items_label %> + <%= render "govuk_publishing_components/components/layout_header/navigation_items", navigation_items: navigation_items, navigation_aria_label: navigation_aria_label %>
<% if search %>