A platform for community discussion. Free, open, simple.
A11Y: add aria-label to topic footer button region (#35328)
Kris9f8a5d647a7b
diff --git a/app/assets/javascripts/discourse/app/components/topic-footer-buttons.gjs b/app/assets/javascripts/discourse/app/components/topic-footer-buttons.gjsindex 0de9f65ca5d..a9f3a13b7cc 100644--- a/app/assets/javascripts/discourse/app/components/topic-footer-buttons.gjs+++ b/app/assets/javascripts/discourse/app/components/topic-footer-buttons.gjs@@ -31,10 +31,11 @@ function bind(fn, context) {return fn.bind(context);}-@attributeBindings("role")+@attributeBindings("role", "aria-label")export default class TopicFooterButtons extends Component {elementId = "topic-footer-buttons";role = "region";+ "aria-label" = i18n("topic.footer_buttons.region_label");@alias("currentUser.can_send_private_messages") canSendPms;@alias("topic.details.can_invite_to") canInviteTo;diff --git a/config/locales/client.en.yml b/config/locales/client.en.ymlindex 320ba7d0da6..f83d1202b40 100644--- a/config/locales/client.en.yml+++ b/config/locales/client.en.yml@@ -3876,6 +3876,9 @@ en:title: "Reply"help: "begin composing a reply to this topic"+ footer_buttons:+ region_label: "Topic actions"+share:title: "Share Topic"extended_title: "Share a link"