fix(a11y/footer): img with alt for beta gouv logo

Cf #8050
This commit is contained in:
Colin Darie 2022-11-28 15:20:27 +01:00
parent c55148f694
commit e60fb1f0c1
4 changed files with 8 additions and 12 deletions

View file

@ -13,10 +13,8 @@
opacity: 0.8;
}
.footer-logo-beta-gouv-fr {
@include ie-compatible-background-image("footer/logo-beta-gouv-fr.svg");
width: 150px;
height: 25px;
margin-top: 14px;
.fr-footer__logo {
&.logo-beta-gouv-fr {
width: 9rem;
}
}

View file

@ -45,8 +45,8 @@
premier
%br
ministre
= link_to t("links.footer.betagouv.url"), title: t("links.footer.betagouv.title"), 'aria-label': t("links.footer.betagouv.label"), class: "fr-footer__brand-link" do
%span.footer-logo.footer-logo-beta-gouv-fr{ role: 'img', 'aria-label': "Logo #{t('links.footer.betagouv.label')}" }
= link_to t("links.footer.betagouv.url"), title: t("links.footer.betagouv.title"), class: "fr-footer__brand-link" do
= image_tag("footer/logo-beta-gouv-fr.svg", class: "fr-footer__logo logo-beta-gouv-fr", alt: "beta.gouv.fr")
.fr-footer__content
%p.fr-footer__content-desc
= t('links.footer.description_1')

View file

@ -27,9 +27,8 @@ en:
title: "API Documentation"
url: "https://doc.demarches-simplifiees.fr/pour-aller-plus-loin/graphql"
betagouv:
label: "Beta.gouv.fr"
title: "The Beta.gouv.fr website"
url: "https://beta.gouv.fr"
url: "https://beta.gouv.fr — French Republic"
code:
label: "Source code"
title: "Our Source code is open source"

View file

@ -29,8 +29,7 @@ fr:
title: "Documentation graphql de l'API"
url: "https://doc.demarches-simplifiees.fr/pour-aller-plus-loin/graphql"
betagouv:
label: "Beta.gouv.fr"
title: "Le site de Beta.gouv.fr"
title: "Le site de beta.gouv.fr — République Française"
url: "https://beta.gouv.fr"
cgu:
label: "CGU"