Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 4a85f04

Browse files
author
Bastien Guerry
committed
src/cljs/codegouvfr/core.cljs: Add some alt="..." to images
1 parent c524d86 commit 4a85f04

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/cljs/codegouvfr/core.cljs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,8 @@
513513
{:href (str "https://archive.softwareheritage.org/browse/origin/" r)
514514
:title (i/i lang [:swh-link])
515515
:target "new"}
516-
[:img {:width "18px" :src "/img/swh-logo.png"}]]]
516+
[:img {:width "18px" :src "/img/swh-logo.png"
517+
:alt "Software Heritage logo"}]]]
517518
;; Description
518519
[:td {:title (when a? (i/i lang [:repo-archived]))}
519520
[:span
@@ -704,8 +705,8 @@
704705
{:title (i/i lang [:go-to-website])
705706
:target "new"
706707
:href w}
707-
[:img {:src au :width "100%"}]])
708-
[:img {:src au :width "100%"}])]
708+
[:img {:src au :width "100%" :alt ""}]])
709+
[:img {:src au :width "100%" :alt ""}])]
709710
[:td
710711
[:a {:target "new" :title (i/i lang [:go-to-orga]) :href o} (or n l)]]
711712
[:td d]
@@ -965,7 +966,8 @@
965966
[:div.fr-col-6
966967
(stats-card (i/i lang [:distribution-by-platform]) platforms)]
967968
[:div.fr-col-6
968-
[:img {:src "/data/top_licenses.svg" :width "100%"}]]]
969+
[:img {:src "/data/top_licenses.svg" :width "100%"
970+
:alt (i/i lang [:most-used-licenses])}]]]
969971

970972
;; FIXME: Shall we add this?
971973
;; [:div

0 commit comments

Comments
 (0)