From 0d890e1f98418199497264a8c99e2631ef4130b3 Mon Sep 17 00:00:00 2001 From: Kris Date: Fri, 22 Mar 2024 09:49:03 -0400 Subject: [PATCH] A11Y: topic map aria-controls needs an ID (#26308) --- .../javascripts/discourse/app/components/topic-map.gjs | 5 ++++- .../discourse/app/components/topic-map/topic-map-summary.gjs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/topic-map.gjs b/app/assets/javascripts/discourse/app/components/topic-map.gjs index c9f43914dc2..4c11d92f691 100644 --- a/app/assets/javascripts/discourse/app/components/topic-map.gjs +++ b/app/assets/javascripts/discourse/app/components/topic-map.gjs @@ -25,7 +25,10 @@ export default class TopicMap extends Component { /> {{#unless this.collapsed}} -
+
{{/unless}} diff --git a/app/assets/javascripts/discourse/app/components/topic-map/topic-map-summary.gjs b/app/assets/javascripts/discourse/app/components/topic-map/topic-map-summary.gjs index 7b8d412f819..bd580190d06 100644 --- a/app/assets/javascripts/discourse/app/components/topic-map/topic-map-summary.gjs +++ b/app/assets/javascripts/discourse/app/components/topic-map/topic-map-summary.gjs @@ -17,7 +17,7 @@ export default class TopicMapSummary extends Component { : "topic.collapse_details", icon: this.args.collapsed ? "chevron-down" : "chevron-up", ariaExpanded: this.args.collapsed ? "false" : "true", - ariaControls: "topic-map-expanded", + ariaControls: "topic-map-expanded__aria-controls", action: this.args.toggleMap, }; }