Skip to content

Commit

Permalink
MWPW-160233: Adding tabindex to social share icons (#3078)
Browse files Browse the repository at this point in the history
Adding tabindex to social share icons to make sure users can tab to them
  • Loading branch information
JasonHowellSlavin authored Oct 28, 2024
1 parent ba079c8 commit ff054af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/blocks/article-header/article-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,20 +108,24 @@ async function buildSharing() {
twitter: {
'data-href': `https://www.twitter.com/share?&url=${url}&text=${title}`,
'aria-label': 'share twitter',
tabindex: '0',
},
linkedin: {
'data-type': 'LinkedIn',
'data-href': `https://www.linkedin.com/shareArticle?mini=true&url=${url}&title=${title}&summary=${description || ''}`,
'aria-label': 'share linkedin',
tabindex: '0',
},
facebook: {
'data-type': 'Facebook',
'data-href': `https://www.facebook.com/sharer/sharer.php?u=${url}`,
'aria-label': 'share facebook',
tabindex: '0',
},
link: {
id: 'copy-to-clipboard',
'aria-label': 'copy to clipboard',
tabindex: '0',
},
};

Expand Down

0 comments on commit ff054af

Please sign in to comment.