From 6a02a37137e804799727f0e23bd3606b62a67543 Mon Sep 17 00:00:00 2001 From: Daniel Couzens Date: Wed, 28 Aug 2024 14:15:00 +0100 Subject: [PATCH] updates aria label --- app/views/compare/show.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/compare/show.html.haml b/app/views/compare/show.html.haml index ec7a95f7..32cf99c9 100644 --- a/app/views/compare/show.html.haml +++ b/app/views/compare/show.html.haml @@ -49,8 +49,8 @@ %li.c-compare__add-location %label{ for: 'location-term'} = t('compare.show.add_location') - %input{ id: 'location-term', type: 'text', name: 'location-term', "aria-label": "Location search", value: @view_state.search_term } - %button{ type: 'submit', value: 'search', name: 'form-action', "aria-label": "Search for location" } + %input{ id: 'location-term', type: 'text', name: 'location-term', "aria-label": "#{t('compare.show.add_location')}", value: @view_state.search_term } + %button{ type: 'submit', value: 'search', name: 'form-action', "aria-label": "#{t('action.search')}" } = t('action.search') - if @view_state.search_results