A11Y: Make "Load parent post" element accessible (#18568)

This commit is contained in:
Penar Musaraj 2022-10-12 14:35:31 -04:00 committed by GitHub
parent c4812948f6
commit d7c5a7033d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -140,6 +140,12 @@ createWidget("reply-to-tab", {
return { loading: false };
},
buildAttributes() {
return {
tabindex: "0",
};
},
html(attrs, state) {
const icon = state.loading ? h("div.spinner.small") : iconNode("share");
const name = prioritizeNameFallback(