Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add "skip to main content" a11y feature #12408

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kaycebasques
Copy link
Contributor

Subject: Improve usability of core Sphinx themes for people who rely on Tab-based navigation

Feature or Bugfix

  • Bugfix

Purpose

  • Improve the accessibility of core Sphinx themes

Relates

@kaycebasques kaycebasques marked this pull request as draft June 3, 2024 22:51
Copy link
Member

@chrisjsewell chrisjsewell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heya cheers, see the review comments

sphinx/themes/basic/static/basic.css_t Outdated Show resolved Hide resolved
sphinx/themes/basic/layout.html Outdated Show resolved Hide resolved
@chrisjsewell chrisjsewell linked an issue Jun 4, 2024 that may be closed by this pull request
# html_css_files = [
# # 'basic.css', # included through inheritance from the basic theme
# 'sphinx13.css',
# ]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just my WIP code to apply the changes to upstream Sphinx docs. None of this should be merged.

left: -1000%;
background-color: #fda;
padding: 1em;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new node will render like this. I used the same background that system-message uses. LMK if the background should be something else.

image

@kaycebasques
Copy link
Contributor Author

Hi @chrisjsewell picking this back up. I addressed your first round of comments. LMK if you want to proceed with this and I will add the same a11y fix/feature to all the other builtin themes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "skip to main content" a11y feature
2 participants