Replace aria-label with visually-hidden label

This commit is contained in:
Corinne Durrmeyer 2024-07-30 17:03:29 +02:00
parent f3bca9bfeb
commit 87ab67fee5
No known key found for this signature in database
GPG key ID: DDC049DDA35585B6

View file

@ -6,16 +6,19 @@
%dl.fr-text--sm
.flex.fr-mb-1w
%dt.fr-mr-1v
%span.help-dropdown-service-item.fr-icon-mail-fill.fr-icon--sm{ "aria-label": t('layouts.mailers.service_footer.by_email') }
%span.help-dropdown-service-item.fr-icon-mail-fill.fr-icon--sm{ "aria-hidden": "true" }
%span.visually-hidden= t('layouts.mailers.service_footer.by_email')
%dd
= link_to service.email, "mailto:#{service.email}", role: 'menuitem'
.flex.fr-mb-1w
%dt.fr-mr-1v
%span.fr-icon-phone-fill.fr-icon--sm{ "aria-label": t('layouts.mailers.service_footer.by_phone') }
%span.help-dropdown-service-item.fr-icon-phone-fill.fr-icon--sm{ "aria-hidden": "true" }
%span.visually-hidden= t('layouts.mailers.service_footer.by_phone')
%dd
= link_to service.telephone, service.telephone_url, role: 'menuitem'
.flex.fr-mb-1w
%dt.fr-mr-1v
%span.fr-icon-time-fill.fr-icon--sm{ "aria-label": t('layouts.mailers.service_footer.schedule') }
%span.help-dropdown-service-item.fr-icon-time-fill.fr-icon--sm{ "aria-hidden": "true" }
%span.visually-hidden= t('layouts.mailers.service_footer.schedule')
%dd
= service.horaires