From 42530a9e13af8854cd67471e65a38a1dada423bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Mon, 24 Jan 2022 10:13:46 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Ajout=20du=20titre=20au=20survol?= =?UTF-8?q?e=20des=20liens=20externe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix #1898 --- site/source/design-system/card/Article.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/site/source/design-system/card/Article.tsx b/site/source/design-system/card/Article.tsx index f33a534c6..ce32b53cf 100644 --- a/site/source/design-system/card/Article.tsx +++ b/site/source/design-system/card/Article.tsx @@ -39,7 +39,10 @@ export function Article({ ref ) as any const titleProps = getTitleProps(title, 'h3') - const linkProps = useExternalLinkProps(ariaButtonProps) + const linkProps = useExternalLinkProps({ + ...(typeof title === 'string' ? { title } : {}), + ...ariaButtonProps, + }) return (