Replace aria-label with visually-hidden label
This commit is contained in:
parent
f3bca9bfeb
commit
87ab67fee5
1 changed files with 6 additions and 3 deletions
|
@ -6,16 +6,19 @@
|
||||||
%dl.fr-text--sm
|
%dl.fr-text--sm
|
||||||
.flex.fr-mb-1w
|
.flex.fr-mb-1w
|
||||||
%dt.fr-mr-1v
|
%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
|
%dd
|
||||||
= link_to service.email, "mailto:#{service.email}", role: 'menuitem'
|
= link_to service.email, "mailto:#{service.email}", role: 'menuitem'
|
||||||
.flex.fr-mb-1w
|
.flex.fr-mb-1w
|
||||||
%dt.fr-mr-1v
|
%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
|
%dd
|
||||||
= link_to service.telephone, service.telephone_url, role: 'menuitem'
|
= link_to service.telephone, service.telephone_url, role: 'menuitem'
|
||||||
.flex.fr-mb-1w
|
.flex.fr-mb-1w
|
||||||
%dt.fr-mr-1v
|
%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
|
%dd
|
||||||
= service.horaires
|
= service.horaires
|
||||||
|
|
Loading…
Reference in a new issue