Skip to content

Commit

Permalink
🐛 remove target="_blank" from Button <a> tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesau committed Mar 1, 2024
1 parent 6c5ea96 commit 2f1fd03
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/@ourworldindata/components/src/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,7 @@ export const Button = ({

if (href) {
return (
<a
className={classes}
href={href}
target="_blank"
rel="noopener noreferrer"
>
<a className={classes} href={href}>
{text} {icon && <FontAwesomeIcon icon={icon} />}
</a>
)
Expand Down

0 comments on commit 2f1fd03

Please sign in to comment.