Skip to content

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

A11Y: aria-label for the post edit history button (#20123)

Kris5a7b942affd4
diff --git a/app/assets/javascripts/discourse/app/widgets/post-edits-indicator.js b/app/assets/javascripts/discourse/app/widgets/post-edits-indicator.js
index 741f9705b40..3dee8c4868f 100644
--- a/app/assets/javascripts/discourse/app/widgets/post-edits-indicator.js
+++ b/app/assets/javascripts/discourse/app/widgets/post-edits-indicator.js
@@ -56,6 +56,7 @@ export default createWidget("post-edits-indicator", {
translatedTitle: title,
className,
action: "onPostEditsIndicatorClick",
+ translatedAriaLabel: I18n.t("post.edit_history"),
translatedLabel: attrs.version > 1 ? attrs.version - 1 : "",
});
},
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index 34ae6702618..242e4cd6290 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -3362,6 +3362,7 @@ en:
ignored: "Ignored content"
wiki_last_edited_on: "wiki last edited on %{dateTime}"
last_edited_on: "post last edited on %{dateTime}"
+ edit_history: "post edit history"
reply_as_new_topic: "Reply as linked Topic"
reply_as_new_private_message: "Reply as new message to the same recipients"
continue_discussion: "Continuing the discussion from %{postLink}:"