Skip to content

A platform for community discussion. Free, open, simple.

Hide empty anchor tag from screen readers

Krisbdaf07adcf80
diff --git a/app/assets/javascripts/discourse/widgets/post.js.es6 b/app/assets/javascripts/discourse/widgets/post.js.es6
index 04bd6e15a3c..60511b30f21 100644
--- a/app/assets/javascripts/discourse/widgets/post.js.es6
+++ b/app/assets/javascripts/discourse/widgets/post.js.es6
@@ -532,7 +532,9 @@ createWidget("post-article", {
},
html(attrs, state) {
- const rows = [h("a.tabLoc", { attributes: { href: "" } })];
+ const rows = [
+ h("a.tabLoc", { attributes: { href: "", "aria-hidden": true } })
+ ];
if (state.repliesAbove.length) {
const replies = state.repliesAbove.map(p => {
return this.attach("embedded-post", p, {