Skip to content

Commit 256d6cf

Browse files
authored
Merge pull request #162 from pprev94/fix-issue-153
fix: Add title for footer links that open in a new tab #153
2 parents 4dd528b + 3207b5f commit 256d6cf

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

src/Footer.tsx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ export const Footer = memo(
332332
)}
333333
target="_blank"
334334
href={`https://${domain}`}
335+
title={`${domain} - ${t("open new window")}`}
335336
>
336337
{domain}
337338
</a>
@@ -502,12 +503,17 @@ const { useTranslation, addFooterTranslations } = createComponentI18nApi({
502503
"license mention": (p: { licenseUrl: string }) => (
503504
<>
504505
Sauf mention contraire, tous les contenus de ce site sont sous{" "}
505-
<a href={p.licenseUrl} target="_blank">
506+
<a
507+
href={p.licenseUrl}
508+
target="_blank"
509+
title="licence etalab-2.0 - ouvre une nouvelle fenêtre"
510+
>
506511
licence etalab-2.0
507512
</a>
508513
</>
509514
),
510-
"our partners": "Nos partenaires"
515+
"our partners": "Nos partenaires",
516+
"open new window": "ouvre une nouvelle fenêtre"
511517
/* spell-checker: enable */
512518
}
513519
});
@@ -524,11 +530,16 @@ addFooterTranslations({
524530
"license mention": p => (
525531
<>
526532
Unless stated otherwise, all content of this website is under the{" "}
527-
<a href={p.licenseUrl} target="_blank">
533+
<a
534+
href={p.licenseUrl}
535+
target="_blank"
536+
title="etalab-2.0 license - open a new window"
537+
>
528538
etalab-2.0 license
529539
</a>
530540
</>
531-
)
541+
),
542+
"open new window": "open new window"
532543
}
533544
});
534545

0 commit comments

Comments
 (0)