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

Commit e39fd9b

Browse files
🔖 Tag v3.0.4
1 parent adf4c7d commit e39fd9b

15 files changed

+21
-16
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<a name="3.0.4"></a>
2+
# [3.0.4](https://github.com/nicolasbeauvais/vue-social-sharing/compare/3.0.3...3.0.4) (2020-11-25)
3+
- Add `href` attribute to SocialSharing nodes with `a` tag for accessibility
4+
15
<a name="3.0.3"></a>
26
# [3.0.3](https://github.com/nicolasbeauvais/vue-social-sharing/compare/3.0.2...3.0.3) (2020-10-24)
37
- Update Xing sharing url

dist/vue-social-sharing.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/iframe.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@
7171
}</script><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" integrity="sha256-h20CPZ0QyXlBuAw7A+KluUYx/3pK+c7lYEpqLTlxjYQ=" crossorigin="anonymous"><style>#root[hidden],
7272
#docs-root[hidden] {
7373
display: none !important;
74-
}</style></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script src="runtime~main.0d9ca260f1b30d53c260.bundle.js"></script><script src="vendors~main.0d9ca260f1b30d53c260.bundle.js"></script><script src="main.0d9ca260f1b30d53c260.bundle.js"></script></body></html>
74+
}</style></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script src="runtime~main.ae4faee24d5e5ea507cd.bundle.js"></script><script src="vendors~main.ae4faee24d5e5ea507cd.bundle.js"></script><script src="main.ae4faee24d5e5ea507cd.bundle.js"></script></body></html>

docs/main.0d9ca260f1b30d53c260.bundle.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/main.0d9ca260f1b30d53c260.bundle.js renamed to docs/main.ae4faee24d5e5ea507cd.bundle.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/main.ae4faee24d5e5ea507cd.bundle.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/runtime~main.0d9ca260f1b30d53c260.bundle.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/runtime~main.0d9ca260f1b30d53c260.bundle.js renamed to docs/runtime~main.ae4faee24d5e5ea507cd.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/runtime~main.ae4faee24d5e5ea507cd.bundle.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/vendors~main.0d9ca260f1b30d53c260.bundle.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/vendors~main.0d9ca260f1b30d53c260.bundle.js renamed to docs/vendors~main.ae4faee24d5e5ea507cd.bundle.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/vendors~main.ae4faee24d5e5ea507cd.bundle.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-social-sharing",
3-
"version": "3.0.3",
3+
"version": "3.0.4",
44
"description": "A Vue.js component for sharing links to social networks",
55
"author": "Nicolas Beauvais <nicolas@bvs.email>",
66
"license": "MIT",

src/share-network.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,15 +180,16 @@ export default {
180180
throw new Error('Network ' + this.key + ' does not exist')
181181
}
182182

183-
return createElement(this.tag, {
183+
const node = {
184184
class: 'share-network-' + this.key,
185-
attrs: {
186-
href: '#'
187-
},
188185
on: {
189186
click: () => this[this.rawLink.substring(0, 4) === 'http' ? 'share' : 'touch']()
190187
}
191-
}, this.$slots.default)
188+
}
189+
190+
if (this.tag === 'a') node.attrs = { href: '#' }
191+
192+
return createElement(this.tag, node, this.$slots.default)
192193
},
193194

194195
methods: {

0 commit comments

Comments
 (0)