Skip to content

Commit

Permalink
added tooltip for opens in new window
Browse files Browse the repository at this point in the history
  • Loading branch information
ItshMoh committed Oct 15, 2024
1 parent fafd0bd commit e335a8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/src/components/Href.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ export const Href: React.FunctionComponent<Props> = ({
}) => (
<a
href={href}
title={title}
title={title ? `${title} (Opens in new window)` : 'Opens in new window'}
className={className}
target="_blank"
rel="nofollow noopener noreferrer"
>
{children}
Expand Down

0 comments on commit e335a8f

Please sign in to comment.