Skip to content

Commit

Permalink
feat: enhance a11y support
Browse files Browse the repository at this point in the history
  • Loading branch information
ntnyq committed Dec 11, 2024
1 parent 09376ca commit b4d3c49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/client/components/GlobalSocialShare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const GlobalSocialShare = defineComponent({
class: 'social-share-btn social-share-trigger',
type: 'button',
role: 'button',
'aria-label': 'Toggle global social share',
onClick: (evt: MouseEvent) => onClick(evt),
},
[renderButtonIcon()],
Expand Down
1 change: 1 addition & 0 deletions src/client/components/SocialShareNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const SocialShareNetwork = defineComponent({
title: network.name,
type: 'button',
role: 'button',
'aria-label': network.name,
onClick: () => ctx.emit(Event.Share, network.name),
'data-link': network.type === 'popup' ? `#share-${network.name}` : props.shareURL,
},
Expand Down

0 comments on commit b4d3c49

Please sign in to comment.