The outline had two navigation elements, one labelled but one not
The labelled navigation's label was exclusive to assistive tech. It was at best duplicative of and at worst in conflict with the configurable heading displayed visually, which is also available to assistive tech.
After
The outline has one navigation element. Its label is the configurable heading displayed visually.
Testing
On a Vitepress site using the released version, on any page with an outline, use a screen reader or other assistive tech to read the outline. Confirm that the nested navigation adds no value, that the labelled nav's label is distinct from what is displayed visually, and that the divergent assistive tech experience adds no value.
On this branch,
Run axe DevTools on a page with an outline. Confirm that there is no regression error in the outline
Use a screen reader or other assistive tech to read the outline. Confirm that the single nav is labelled by the visually displayed heading, and that the assistive tech experience of the outline is closer to the visual experience than it was.
Fixes #3800
3800
Before
After
The outline has one navigation element. Its label is the configurable heading displayed visually.
Testing
On this branch,