A11Y: topic map aria-controls needs an ID (#26308)

This commit is contained in:
Kris 2024-03-22 09:49:03 -04:00 committed by GitHub
parent 04e365f741
commit 0d890e1f98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -25,7 +25,10 @@ export default class TopicMap extends Component {
/>
</section>
{{#unless this.collapsed}}
<section class="topic-map-expanded">
<section
class="topic-map-expanded"
id="topic-map-expanded__aria-controls"
>
<TopicMapExpanded @postAttrs={{@postAttrs}} />
</section>
{{/unless}}

View File

@ -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,
};
}