From 5a7b942affd424d5c78235a82ee63bfc10f67291 Mon Sep 17 00:00:00 2001 From: Kris Date: Thu, 2 Feb 2023 09:41:28 -0500 Subject: [PATCH] A11Y: aria-label for the post edit history button (#20123) --- .../javascripts/discourse/app/widgets/post-edits-indicator.js | 1 + config/locales/client.en.yml | 1 + 2 files changed, 2 insertions(+) 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}:"