From 4d00fcc2d9ed82f1128e799cf389d8cdc85123b3 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Mon, 28 Nov 2022 15:53:20 +0100 Subject: [PATCH] fix(a11y/home): add missing title attributes Cf #8050 --- app/views/root/landing.html.haml | 2 +- app/views/shared/help/_help_button.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/root/landing.html.haml b/app/views/root/landing.html.haml index 60b03d244..b0c6264bb 100644 --- a/app/views/root/landing.html.haml +++ b/app/views/root/landing.html.haml @@ -63,7 +63,7 @@ %h2.cta-panel-title Une question, un problème ? %p.cta-panel-explanation La réponse est dans l’aide en ligne %div - = link_to "Accéder à l’aide en ligne", FAQ_URL, class: "fr-btn fr-btn--lg", **external_link_attributes + = link_to "Accéder à l’aide en ligne", FAQ_URL, class: "fr-btn fr-btn--lg", title: new_tab_suffix("Accéder à l’aide en ligne"), **external_link_attributes -# We temporarily disable the link to the contact page on the homepage -# %p.cta-panel-explanation Notre équipe est disponible pour vous renseigner et vous aider -# %div diff --git a/app/views/shared/help/_help_button.html.haml b/app/views/shared/help/_help_button.html.haml index e6fd4fdac..f3ad1d8d2 100644 --- a/app/views/shared/help/_help_button.html.haml +++ b/app/views/shared/help/_help_button.html.haml @@ -1 +1 @@ -= link_to t('help'), FAQ_URL, class: 'fr-btn', target: '_blank', rel: 'noopener' += link_to t('help'), FAQ_URL, class: 'fr-btn', title: new_tab_suffix(t('help')), **external_link_attributes