Skip to content

Hide Ace content from assistive technologies to improve a11y - #5160

Merged
akoreman merged 26 commits into
ajaxorg:masterfrom
akoreman:screen_reader
May 10, 2023
Merged

akoreman merged 26 commits into
ajaxorg:masterfrom
akoreman:screen_reader

Conversation

@akoreman

@akoreman akoreman commented May 9, 2023

Copy link
Copy Markdown
Contributor

Issue #2164

Some screen reader/browser configurations read the entire visible part of the document when entering Ace. This aims to improve the screen reader experience by hiding the ace_content div from assistive technologies when a11y mode is enabled.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov

codecov Bot commented May 9, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch coverage: 98.18% and project coverage change: +0.01 🎉

Comparison is base (2c8f232) 86.92% compared to head (006c7f1) 86.93%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5160      +/-   ##
==========================================
+ Coverage   86.92%   86.93%   +0.01%     
==========================================
  Files         561      561              
  Lines       44912    44935      +23     
  Branches     6907     6909       +2     
==========================================
+ Hits        39039    39066      +27     
+ Misses       5873     5869       -4     
Flag Coverage Δ
unittests 86.93% <98.18%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/virtual_renderer.js 78.74% <66.66%> (-0.06%) ⬇️
src/editor.js 80.56% <100.00%> (+0.40%) ⬆️
src/editor_navigation_test.js 99.30% <100.00%> (+0.07%) ⬆️
src/keyboard/gutter_handler.js 89.27% <100.00%> (ø)
src/keyboard/textinput.js 77.44% <100.00%> (ø)
src/layer/gutter.js 90.61% <100.00%> (+0.08%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment thread src/keyboard/textinput.js Outdated
Comment on lines +68 to +69
if(host.session && host.renderer.enableKeyboardAccessibility)
{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Doesn't look in line with the code style

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ah whoops, you're right. Fixed in new commit

@akoreman
akoreman requested a review from ibabanov-aws May 10, 2023 12:40
@akoreman akoreman changed the title Hide Ace content from assistive technologies to improve a11y experience Hide Ace content from assistive technologies to improve a11y May 10, 2023
@akoreman
akoreman merged commit 563afd1 into ajaxorg:master May 10, 2023
@akoreman
akoreman deleted the screen_reader branch May 10, 2023 13:55
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.

2 participants