A11Y: Improve topic details toggle button label (#13287)

A11Y: Improve topic details toggle button label (#13287)

diff --git a/app/assets/javascripts/discourse/app/widgets/topic-map.js b/app/assets/javascripts/discourse/app/widgets/topic-map.js
index 5db917e..7427717 100644
--- a/app/assets/javascripts/discourse/app/widgets/topic-map.js
+++ b/app/assets/javascripts/discourse/app/widgets/topic-map.js
@@ -246,7 +246,9 @@ createWidget("topic-map-summary", {
     const nav = h(
       "nav.buttons",
       this.attach("button", {
-        title: "topic.toggle_information",
+        title: state.collapsed
+          ? "topic.expand_details"
+          : "topic.collapse_details",
         icon: state.collapsed ? "chevron-down" : "chevron-up",
         action: "toggleMap",
         className: "btn",
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index d11b760..518ded4 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -2471,7 +2471,8 @@ en:
       back_to_list: "Back to Topic List"
       options: "Topic Options"
       show_links: "show links within this topic"
-      toggle_information: "toggle topic details"
+      collapse_details: "collapse topic details"
+      expand_details: "expand topic details"
       read_more_in_category: "Want to read more? Browse other topics in %{catLink} or %{latestLink}."
       read_more: "Want to read more? %{catLink} or %{latestLink}."
       unread_indicator: "No member has read the last post of this topic yet."

GitHub sha: c4e80185

This commit appears in #13287 which was approved by CvX. It was merged by pmusaraj.