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

Code snippet screen reader issues in JAWS 2020 #2523

Closed
4 of 5 tasks
dakahn opened this issue Mar 1, 2019 · 16 comments · Fixed by #5386
Closed
4 of 5 tasks

Code snippet screen reader issues in JAWS 2020 #2523

dakahn opened this issue Mar 1, 2019 · 16 comments · Fixed by #5386
Assignees
Labels
component: code-snippet package: react carbon-components-react severity: 1 https://ibm.biz/carbon-severity type: a11y ♿

Comments

@dakahn
Copy link
Contributor

dakahn commented Mar 1, 2019

@dakahn
AVT 3 issues found with macOS Mojave, Chrome and VoiceOver.
For the inline code snippet VO does not:

  • announce what the button is for. VO should announce that it is a "copy" button.
  • announce that the text is a code snippet.
  • announce "copied" after the button is pressed the first time. (note: copied is announced after the button is pressed twice).

For the single and multi-line code snippet VO:

  • Incorrectly announces that the code snippet is an editable text field.
  • Does not announce "copied" after the button is pressed the first time. (note: copied is announced after the button is pressed twice).

Originally posted by @snidersd in #1531 (comment)

@dakahn dakahn self-assigned this Mar 1, 2019
@dakahn
Copy link
Contributor Author

dakahn commented Mar 2, 2019

Open PR in vanilla repo here

@dakahn dakahn closed this as completed Mar 11, 2019
@dakahn
Copy link
Contributor Author

dakahn commented Mar 18, 2019

New testing -- new issues. Reopening @sniders

@dakahn dakahn reopened this Mar 18, 2019
@dakahn
Copy link
Contributor Author

dakahn commented Apr 9, 2019

Addressed inline issues with #2165

Multi-line code snippet issues forthcoming yall 🤠

@stale
Copy link

stale bot commented May 1, 2019

We've marked this issue as stale because there hasn't been any activity for a couple of weeks. If there's no further activity on this issue in the next three days then we'll close it. Thanks for your contributions.

@dakahn
Copy link
Contributor Author

dakahn commented May 2, 2019

not stale ⚡️

@carbon-bot carbon-bot transferred this issue from carbon-design-system/carbon-components-react May 9, 2019
@dakahn dakahn added priority: high severity: 1 https://ibm.biz/carbon-severity type: a11y ♿ labels May 14, 2019
@stale
Copy link

stale bot commented Jun 13, 2019

We've marked this issue as stale because there hasn't been any activity for a couple of weeks. If there's no further activity on this issue in the next three days then we'll close it. You can keep the conversation going with just a short comment. Thanks for your contributions.

@stale stale bot added the status: inactive Will close if there's no further activity within a given time label Jun 13, 2019
@snidersd snidersd added the package: react carbon-components-react label Jun 14, 2019
@stale stale bot removed the status: inactive Will close if there's no further activity within a given time label Jun 14, 2019
@snidersd
Copy link

Retested and this issue is still present in Vanilla and React.

@snidersd
Copy link

@dakahn Retested and found that a recent update to CodeSnippet has a new issue. The "Copied" message is now "Feedback Enabled" with a thumbs-up which is out of context with the action.
Note: Expected all copy buttons to have the same behavior. CopyButton has the correct messages, but still has the issue of not announcing "Copied".

@dakahn
Copy link
Contributor Author

dakahn commented Aug 16, 2019

@snidersd Getting back to this work next week. I'll sort out the regression.

@dakahn dakahn added this to the CodeSnippet - A11y Project Team milestone Sep 30, 2019
@joshblack
Copy link
Contributor

@dakahn for the role="textbox", what would the resolution be? Seems like it came because someone thought it was needed because we treat the region as focusable with tabindex="0" and an aria-label, would it make sense to call it role="region"?

@dakahn dakahn modified the milestones: CodeSnippet - A11y Project Team, Carbon WCAG Compliance Nov 21, 2019
@mattrosno mattrosno removed this from the ♿Carbon WCAG Compliance♿ milestone Dec 13, 2019
@snidersd
Copy link

@dakahn @joshblack Just noticed that the CopyButton Component is also affected by this issue. "copied" is not announced after the button is pressed.

@dakahn
Copy link
Contributor Author

dakahn commented Feb 27, 2020

Testing this link in Windows 10 with JAWS 2020. The CodeSnippet's copied announcement is not read via screen reader. Though it is no longer read as an editable text field. But the instructions to "press space to select" are read twice instead. @snidersd can you confirm this behavior?

@dakahn dakahn reopened this Feb 27, 2020
@dakahn dakahn changed the title Code snippet screen reader issues Code snippet screen reader issues in JAWS 2020 Feb 27, 2020
@snidersd
Copy link

@dakahn I tested with Windows 10, JAWS and Firefox:
Tab to code snippet, JAWS announces, "Main region, container label, edit."
Tab to button, JAWS announces, "Copyable code snippet button."
Press Enter or Space, JAWS announces, "Copied to clipboard."

When I test with Windows 10, JAWS and Chrome I get a different result.
Everything is similiar to Firefox except clicking Enter or Space on the copy button, JAWS announces, "Copied to clipboard" twice and then "Copyable code snippet" twice.

@dakahn
Copy link
Contributor Author

dakahn commented Feb 28, 2020

Hmm -- okay. The double announcements are annoying, but if it's reading copied state that's good

@asudoh
Copy link
Contributor

asudoh commented Mar 4, 2020

@dakahn Given it's reading the copied state, do you still want to keep this issue open? Or should we track the "double reading" thing as a separate issue?

@joshblack joshblack mentioned this issue Mar 4, 2020
82 tasks
@dakahn
Copy link
Contributor Author

dakahn commented Mar 6, 2020

yeah let's do that @asudoh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: code-snippet package: react carbon-components-react severity: 1 https://ibm.biz/carbon-severity type: a11y ♿
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants