Skip to content

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

A11Y: post avatars should not be tabbable (#20045)

Kris39eec37e75b6
diff --git a/app/assets/javascripts/discourse/app/widgets/post.js b/app/assets/javascripts/discourse/app/widgets/post.js
index fc1d83c7696..c4adadffad4 100644
--- a/app/assets/javascripts/discourse/app/widgets/post.js
+++ b/app/assets/javascripts/discourse/app/widgets/post.js
@@ -64,6 +64,7 @@ export function avatarImg(wanted, attrs) {
title,
"aria-label": title,
loading: "lazy",
+ tabindex: "-1",
},
className,
};