A11Y: topic map aria-controls needs an ID (#26308)
This commit is contained in:
parent
04e365f741
commit
0d890e1f98
|
@ -25,7 +25,10 @@ export default class TopicMap extends Component {
|
||||||
/>
|
/>
|
||||||
</section>
|
</section>
|
||||||
{{#unless this.collapsed}}
|
{{#unless this.collapsed}}
|
||||||
<section class="topic-map-expanded">
|
<section
|
||||||
|
class="topic-map-expanded"
|
||||||
|
id="topic-map-expanded__aria-controls"
|
||||||
|
>
|
||||||
<TopicMapExpanded @postAttrs={{@postAttrs}} />
|
<TopicMapExpanded @postAttrs={{@postAttrs}} />
|
||||||
</section>
|
</section>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
|
|
@ -17,7 +17,7 @@ export default class TopicMapSummary extends Component {
|
||||||
: "topic.collapse_details",
|
: "topic.collapse_details",
|
||||||
icon: this.args.collapsed ? "chevron-down" : "chevron-up",
|
icon: this.args.collapsed ? "chevron-down" : "chevron-up",
|
||||||
ariaExpanded: this.args.collapsed ? "false" : "true",
|
ariaExpanded: this.args.collapsed ? "false" : "true",
|
||||||
ariaControls: "topic-map-expanded",
|
ariaControls: "topic-map-expanded__aria-controls",
|
||||||
action: this.args.toggleMap,
|
action: this.args.toggleMap,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue