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

This commit is contained in:
Penar Musaraj 2021-06-04 13:28:18 -04:00 committed by GitHub
parent 2c6ceec9ea
commit c4e801852f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -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",

View File

@ -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."