Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit adf4c7d

Browse files
Merge pull request #256 from mtranggit/improve-accessibility-with-element-focus
Improve accessibility with element focus
2 parents dff0c4f + cc4992b commit adf4c7d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/share-network.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ export default {
182182

183183
return createElement(this.tag, {
184184
class: 'share-network-' + this.key,
185+
attrs: {
186+
href: '#'
187+
},
185188
on: {
186189
click: () => this[this.rawLink.substring(0, 4) === 'http' ? 'share' : 'touch']()
187190
}

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ export interface PluginOptions {
1717
networks: Record<string, string>
1818
}
1919

20-
type VueSocialSharing = PluginObject<PluginOptions>
20+
declare const VueSocialSharing: PluginObject<PluginOptions>
2121

2222
export default VueSocialSharing

0 commit comments

Comments
 (0)