GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing github.com — a11y: make the sidebar button a `<button>` by hugovk · Pull Request #14326 · sphinx-doc/sphinx Conversation
Contributor
PurposeThe sidebar button should be a semantic This is needed for accessibility via keyboard and assistive technology. For example, try this before and after this fix: cd tests/roots/test-tocdepth rm -rf _build python -m sphinx -b html -D html_theme=classic -D html_theme_options.collapsiblesidebar=true . _build/html open _build/html/index.html Then press tab repeatedly. Before, the After, the real References
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
The ty and 3.15 failures are unrelated and also occur in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Welcome change, useful for both keyboard savvys and people with disabilities :)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This is fundamentally reasonable. However, it is a breaking change for downstream templates.
This will beak users who have styled the button with a div#sidebarbutton CSS filter, e.g. https://github.com/search?q=div%23sidebarbutton+language%3ACSS+NOT+is%3Afork&type=code
This needs a prominent change note and advice to change the style filter to #sidebarbutton.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Added! I put 9.2.0 as the version, but I don't mind if this needs a major bump. Some other semantic improvements have been done as bug fixes: #13689. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
nit: add type="button" on #sidebarbutton so it does not default to submit if this block ever sits inside a <form>.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
CI failures are unrelated and are fixed by #14611, which is approved and awaiting merge. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.