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

Hide Ace content from assistive technologies to improve a11y #5160

Merged
merged 26 commits into from
May 10, 2023

Conversation

akoreman
Copy link
Contributor

@akoreman akoreman commented May 9, 2023

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
Copy link

codecov bot commented May 9, 2023

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 on lines 68 to 69
if(host.session && host.renderer.enableKeyboardAccessibility)
{
Copy link
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
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 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