Skip to content

Commit abd3c24

Browse files
committed
fix: Add title for footer links that open in a new tab #153
1 parent c038ea1 commit abd3c24

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/Footer.tsx

Lines changed: 11 additions & 2 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} - ouvre une nouvelle fenêtre`}
335336
>
336337
{domain}
337338
</a>
@@ -502,7 +503,11 @@ 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
</>
@@ -524,7 +529,11 @@ addFooterTranslations({
524529
"license mention": p => (
525530
<>
526531
Unless stated otherwise, all content of this website is under the{" "}
527-
<a href={p.licenseUrl} target="_blank">
532+
<a
533+
href={p.licenseUrl}
534+
target="_blank"
535+
title="etalab-2.0 license - open a new window"
536+
>
528537
etalab-2.0 license
529538
</a>
530539
</>

0 commit comments

Comments
 (0)