Skip to content

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

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

Penar Musarajd7c5a7033d5f
diff --git a/app/assets/javascripts/discourse/app/widgets/post.js b/app/assets/javascripts/discourse/app/widgets/post.js
index e2fa3ab3c0a..275b98c7c12 100644
--- a/app/assets/javascripts/discourse/app/widgets/post.js
+++ b/app/assets/javascripts/discourse/app/widgets/post.js
@@ -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(