Skip to content

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

A11Y: include small post content as headings for screenreaders (#34392)

Kris16bd0b52b194
diff --git a/app/assets/javascripts/discourse/app/components/post/small-action.gjs b/app/assets/javascripts/discourse/app/components/post/small-action.gjs
index 5d41ec31bc5..a2d6edc85cd 100644
--- a/app/assets/javascripts/discourse/app/components/post/small-action.gjs
+++ b/app/assets/javascripts/discourse/app/components/post/small-action.gjs
@@ -153,7 +153,7 @@ export default class PostSmallAction extends Component {
{{icon this.icon}}
</div>
<div class="small-action-desc">
- <div class="small-action-contents">
+ <div class="small-action-contents" role="heading" aria-level="2">
<UserAvatar
@ariaHidden={{false}}
@size="small"