| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
@gagan-baghel is attempting to deploy a commit to the Docsify Team on Vercel. A member of the Team first needs to authorize it. |
Sorry, something went wrong.
The active page link collapses and expands its sub-sidebar when it is activated, but it exposed no expanded state, so screen readers could not announce it. Set aria-expanded when the sub-sidebar is rendered and update it whenever the link toggles the sub-sidebar.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
The active sidebar page link expands and collapses its sub-sidebar (the list of the page's headings) when it is activated, but it has no aria-expanded state, so it is exposed to assistive technology as a plain link with no expanded or collapsed state.
This sets aria-expanded="true" on the active link when its sub-sidebar is rendered, and updates the value whenever the link toggles the sub-sidebar, the same way the collapsible group titles already do. Links without a sub-sidebar (pages that are not active, or pages without headings) get no aria-expanded, since activating them only navigates.
Before/after, checked on the docs site served locally (node server --dev) on the Quick start page:
Verification:
Related issue, if any:
Closes #2615
What kind of change does this PR introduce?
For any code change,
Does this PR introduce a breaking change?
Tested in the following browsers: