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:
parent
90b900704b
commit
e744b9efec
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue