Skip to content

Commit

Permalink
πŸ› Ajout du titre au survole des liens externe
Browse files Browse the repository at this point in the history
fix #1898
  • Loading branch information
wiinxt committed Jan 24, 2022
1 parent 806cc47 commit 42530a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion site/source/design-system/card/Article.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 42530a9

Please sign in to comment.