Skip to content

Commit

Permalink
Skip _blank in social share links, since it should be avoided for bet…
Browse files Browse the repository at this point in the history
…ter accessibility
  • Loading branch information
otenav committed Apr 27, 2022
1 parent 5f13651 commit e12e2b4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/views/ad/shareAd/ShareAd.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export default function ShareAd({ source }) {
href={"https://www.facebook.com/sharer/sharer.php?u=" + location.href}
title="Del på Facebook"
aria-label="Del på Facebook"
target="_blank"
rel="noopener noreferrer"
>
<FacebookIcon />
Expand All @@ -35,7 +34,6 @@ export default function ShareAd({ source }) {
href={"https://www.linkedin.com/shareArticle?mini=true&url=" + location.href}
title="Del på Linkedin"
aria-label="Del på Linkedin"
target="_blank"
rel="noopener noreferrer"
>
<LinkedinIcon />
Expand All @@ -46,7 +44,6 @@ export default function ShareAd({ source }) {
href={"https://twitter.com/intent/tweet?url=" + location.href + "&text=" + encodeURI(title)}
title="Del på Twitter"
aria-label="Del på Twitter"
target="_blank"
rel="noopener noreferrer"
>
<TwitterIcon />
Expand All @@ -59,7 +56,6 @@ export default function ShareAd({ source }) {
href={"fb-messenger://share/?link=" + encodeURIComponent(location.href)}
title="Del i Messenger"
aria-label="Del i Messenger"
target="_blank"
rel="noopener noreferrer"
>
<MessengerIcon />
Expand Down

0 comments on commit e12e2b4

Please sign in to comment.