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

fix JAWS reading dialog title when closing dropdown widget #1808

Merged
merged 1 commit into from Jan 23, 2019

Conversation

divdavem
Copy link
Member

This PR contains a better fix for the problem described in #1797.

When a dropdown widget with waiAria:true is inside a dialog with role=dialog the dropdown DOM element is no longer appended to the <body> but to the element that has role=dialog. Therefore, screen readers correctly understand that the dropdown is not outside the dialog and no longer read the dialog title when changing the focus after closing the dropdown.

divdavem added a commit to divdavem/ariatemplates that referenced this pull request Jan 22, 2019
…n widget

This commit contains a better fix for the problem described in ariatemplates#1797.
When a dropdown widget with waiAria:true is inside a dialog with role=dialog
the dropdown DOM element is no longer appended to the <body> but to the
element that has role=dialog. Therefore, screen readers correctly understand
that the dropdown is not outside the dialog and no longer read the dialog
title when changing the focus after closing the dropdown.

PTR 14068536
@divdavem divdavem requested a review from ymeine January 22, 2019 13:41
…n widget

This commit contains a better fix for the problem described in ariatemplates#1797.
When a dropdown widget with waiAria:true is inside a dialog with role=dialog
the dropdown DOM element is no longer appended to the <body> but to the
element that has role=dialog. Therefore, screen readers correctly understand
that the dropdown is not outside the dialog and no longer read the dialog
title when changing the focus after closing the dropdown.

PTR 14068536
@codecov-io
Copy link

Codecov Report

Merging #1808 into master will decrease coverage by 0.02%.
The diff coverage is 40%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1808      +/-   ##
==========================================
- Coverage   81.02%   80.99%   -0.03%     
==========================================
  Files         599      600       +1     
  Lines       33650    33662      +12     
==========================================
+ Hits        27264    27265       +1     
- Misses       6386     6397      +11
Impacted Files Coverage Δ
src/aria/widgets/form/MultiSelect.js 87.71% <ø> (+0.76%) ⬆️
src/aria/popups/container/DomElement.js 91.17% <100%> (ø) ⬆️
src/aria/popups/container/ViewportElement.js 18.18% <18.18%> (ø)
src/aria/widgets/form/DropDownTrait.js 88.88% <75%> (+3.03%) ⬆️
src/aria/widgets/calendar/CalendarController.js 90.31% <0%> (+0.26%) ⬆️
src/aria/core/ResMgr.js 87.17% <0%> (+0.64%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 111c3c1...4810d99. Read the comment docs.

Copy link
Contributor

@ymeine ymeine left a comment

Choose a reason for hiding this comment

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

That looks good to me! :)

@divdavem
Copy link
Member Author

@ymeine Thank you for your review!

@divdavem divdavem merged commit 40b097e into ariatemplates:master Jan 23, 2019
divdavem added a commit that referenced this pull request Jan 31, 2019
This commit contains a better fix for the problem described in #1797.
When a dropdown widget with waiAria:true is inside a dialog with role=dialog
the dropdown DOM element is no longer appended to the <body> but to the
element that has role=dialog. Therefore, screen readers correctly understand
that the dropdown is not outside the dialog and no longer read the dialog
title when changing the focus after closing the dropdown.

PTR 14068536

(cherry picked from commit 40b097e)
@divdavem divdavem added this to the 2.4.0 milestone Jun 24, 2019
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.

None yet

3 participants