Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy heading text ID from span and test it
Copy the section heading text ID directly from the span to the heading text, instead of constructing it in the JS, since the span ID attribute comes directly from the component template, as does the expandable content area `aria-labelledby` which references the ID. I considered, but decided against, programmatically adding the summary line ID (if it exists) to the expandable content area `aria-labelledby` in addition to the heading ID since in the current component the heading text, which the expandable content `aria-labelledby` refers to, in turn has an `aria-labelledby` which references the summary. However, at least in the Chrome accessibility tree it appears that this link doesn't mean that the current component expandable area gets access to the summary line via the heading.
- Loading branch information