🐛 Ajout du titre au survole des liens externe

fix #1898
pull/1946/head
Jérémy Rialland 2022-01-24 10:13:46 +01:00 committed by Jérémy Rialland
parent 806cc47d1b
commit 42530a9e13
1 changed files with 4 additions and 1 deletions

View File

@ -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 (
<StyledArticle