From 9da0fa5ecbff8adc5e6e91c7cf22546755a91f77 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 20 Aug 2026 22:17:36 +0100 Subject: [PATCH] Add labels to nav elements and enable html-navigation-has-label (#7336) --- .herb.yml | 2 ++ app/views/application/_pagination.html.erb | 2 +- app/views/dashboards/_contact.html.erb | 2 +- app/views/dashboards/show.html.erb | 4 ++-- app/views/diary_entries/_diary_entry.html.erb | 2 +- app/views/diary_entries/_navigation.html.erb | 2 +- app/views/elements/show.html.erb | 2 +- app/views/issues/show.html.erb | 2 +- app/views/layouts/_header.html.erb | 2 +- .../moderation_zones/_navigation.html.erb | 2 +- app/views/notes/_notes_paging_nav.html.erb | 2 +- app/views/old_elements/_actions.html.erb | 2 +- app/views/old_elements/index.html.erb | 2 +- app/views/traces/_trace.html.erb | 2 +- app/views/traces/index.html.erb | 2 +- app/views/users/show.html.erb | 4 ++-- config/locales/en.yml | 20 +++++++++++++++++++ 17 files changed, 39 insertions(+), 17 deletions(-) diff --git a/.herb.yml b/.herb.yml index 43d0f7e92..4ed90c978 100644 --- a/.herb.yml +++ b/.herb.yml @@ -28,6 +28,8 @@ linter: enabled: false erb-strict-locals-required: enabled: true + html-navigation-has-label: + enabled: true html-no-space-in-tag: enabled: true html-no-title-attribute: diff --git a/app/views/application/_pagination.html.erb b/app/views/application/_pagination.html.erb index 6b827708b..5c0a3d6a7 100644 --- a/app/views/application/_pagination.html.erb +++ b/app/views/application/_pagination.html.erb @@ -3,7 +3,7 @@ <% if paginator.older_items_cursor || paginator.newer_items_cursor %> <% translation_scope ||= "application.pagination.#{controller.controller_name}" %> -