-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Match searchbox.html from upstream #1024
base: master
Are you sure you want to change the base?
Conversation
Hrm, I don't see the search copy here: https://sphinx-rtd-theme.readthedocs.io/en/stable/ If this is the same as upstream, can we just delete it? |
You mean the "Quick search" title? That is needed for the aria label. We were using "Search docs" as placeholder instead |
I'm definitely -1 on using vertical space in the sidebar for a search header. There must be a way to properly specify the search box without using a text header, no? |
+1 on adding the a11y updates, but I'm also -1 on showing the label/header, it's too much vertical space for a single field form. Another option would be to use the |
79a493c
to
f87be92
Compare
From MDN
I have used the aria-label attribute, the accessibility inspector from firefox still gives a warning to use a label for the form, but looks like it's just being picky? Not sure |
It might be, yeah. It's a compromise solution and the inspector is likely treating the input as a full form input, not a single field form input. |
What's the verdict on this PR? Hope we can move forward with it, it's important for resolving #970 |
@agjohnson is probably the person to review this and 👍 it. |
https://github.com/sphinx-doc/sphinx/blob/3.x/sphinx/themes/basic/searchbox.html
Questions
"Quick search" or "Search docs"? We used to have the latter, but the former matches upstream