Hide empty anchor tag from screen readers

This commit is contained in:
Kris 2019-07-10 22:39:25 -04:00
parent 1983f0d06e
commit bdaf07adcf
1 changed files with 3 additions and 1 deletions

View File

@ -532,7 +532,9 @@ createWidget("post-article", {
}, },
html(attrs, state) { html(attrs, state) {
const rows = [h("a.tabLoc", { attributes: { href: "" } })]; const rows = [
h("a.tabLoc", { attributes: { href: "", "aria-hidden": true } })
];
if (state.repliesAbove.length) { if (state.repliesAbove.length) {
const replies = state.repliesAbove.map(p => { const replies = state.repliesAbove.map(p => {
return this.attach("embedded-post", p, { return this.attach("embedded-post", p, {