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
User Input Flow has accessibility issues #2851
Comments
I sometimes forget that radio buttons in general shouldn't actually be separately tabbable. Someone on the team pointed this out to me and I did more checks thinking "nah, seems they should be tabbable". But the intent is that checkboxes are tabbable—radio inputs should not be. But to that point, the other three issues are valid. We shouldn't allowing tabbing to the "Other" text input if that option isn't selected. |
@tofumatt Good additional points you're making here - should they be added to the ACs / IB here or would you rather open a separate issue? Not tabbing through radio buttons and not tabbing to text input if "Other" is not selected makes sense to me. |
The radio buttons aren't currently tabbable so that's correct—just clarifying that point as earlier I had marked it as a potential problem, but it's not. I've added the "Other" not being tabbable when "Other" isn't selected to the ACs/IB, so I think this is now good for review again 👍🏻 |
IB ✅ |
QA Update: Clarification with Engineer
|
@wpdarren As per the docs here:
So currently, the radio group not being tabbable is in line with W3C ARIA best practices. |
QA Update: Fail ❌@asvinb an interesting scenario: if the user selects user-input.mp4 |
@wpdarren I think it's perfectly normal. If you click on the "Other" radio button, the focus immediately switches to the input text for the user to type his answer. If the user wants to go back to the radio options, he will use "Shift + Tab" and then use the arrows keys to move up and down. If the user presses "Tab" without entering anything in the "Other" option, the "Next" button remains disabled, thus the focus will be on the next available focusable item, which is the WordPress link at the bottom of the page. |
QA Update: Pass ✅
|
Bug Description
The new User Input Flow has several accessibility issues that cause keyboard-only and screenreader users to have, at minimum, difficulty navigating the new flows. Some bits are simply confusing/unexpected but others make it quite hard to navigate as a keyboard-only user.
This issue encompasses several smaller issues all related to improving the baseline accessibility of the User Input flow.
Return/Enter key does not advance form to next question
The enter key, especially in the text field, should advance the question to the next question. But as shown in the screen capture, it currently doesn't.
Focus is reset/destroyed when "Back" button is used
The "Next" button works fine, but the "Back" button destroys the user's focus context and forces them to tab through their entire browser UI, at least in Chrome.
While resetting focus isn't great, in this case we should do it but re-focus the user onto their answered question after changing the question back one step.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
.googlesitekit-user-input__question
or the first selectable item in the active question. This will allow the user to change focus through the question as-expected. The same should happen with the "Next" button, which I think it does, but this should be confirmed.tabIndex="-1"
on the "Other"input
unless "Other" is selected.Test Coverage
Visual Regression Changes
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: