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; opacity: 0.8;
} }
.footer-logo-beta-gouv-fr { .fr-footer__logo {
@include ie-compatible-background-image("footer/logo-beta-gouv-fr.svg"); &.logo-beta-gouv-fr {
width: 9rem;
width: 150px; }
height: 25px;
margin-top: 14px;
} }

View file

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

View file

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

View file

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