FIX: add tabindex=-1 on tabLoc post links

This prevents tabbing from confusing screenreaders, as having default tabindex
with aria-hidden confuses screenreaders
This commit is contained in:
Jeff Wong 2020-05-11 14:40:29 -07:00
parent 90b900704b
commit e744b9efec
1 changed files with 3 additions and 1 deletions

View File

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