Skip to content

fix: read out snippet content#20

Merged
andrewwylde merged 2 commits intomasterfrom
fix/snippet-a11y
Aug 15, 2022
Merged

fix: read out snippet content#20
andrewwylde merged 2 commits intomasterfrom
fix/snippet-a11y

Conversation

@davidma415
Copy link
Copy Markdown
Contributor

This change updates the CodeSnippetWidget to be more accessible, and reading out the content of each snippet. This was done by wrapping the content of the code tag in a div, and then adding role="text" to each span.

Screen Shot 2022-08-11 at 5 55 57 PM

@davidma415 davidma415 requested a review from a team August 12, 2022 00:26
Copy link
Copy Markdown
Contributor

@Mierenga Mierenga left a comment

Choose a reason for hiding this comment

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

Tested that this will allow Voiceover on macOS to read out code snippets in Chrome and Firefox

@andrewwylde andrewwylde merged commit a93b853 into master Aug 15, 2022
@andrewwylde andrewwylde deleted the fix/snippet-a11y branch August 15, 2022 18:59
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.

3 participants