-
-
Notifications
You must be signed in to change notification settings - Fork 659
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 reporting of landmarks, implement reporting of groupings and figures #10462
Fix reporting of landmarks, implement reporting of groupings and figures #10462
Conversation
…LANDMARK in aria.ariaRolesToNVDARoles
I still need to do some quick tests with braille tomorrow before this is ready. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@michaelDCurran I'm sorry that this has become pretty big. I'm still convinced that integrating this all into one pr was a good decision. |
… role, e.g. <footer role='content-info'>
It seems in Firefox / Chrome, the fieldset containing a legend in your testcase only says grouping (no label is announced) when entering it. Is this expected? The rest of the tests seem to correctly do what they state. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code is okay. But, see comment re one testcase possibly not working as expected. Plus, I'm not convinced that article and grouping should have their end suppressed like landmark. I'm also not convinced about region either, but I do understand that this already may have been expected behaviour as regions were somewhat tied to landmarks.
Yes, this is expected. This is because the name of the grouping (the legend) is also part of the content, and therefore it is suppressed.
I did this because I'd imagine there are cases where articles are directly followed by other articles. Idem for groupings. I'm happy to revert this if you so desire.
Correct, though I agree that regions are much more explicit and therefore deserve an exit announcement. How about if I limit the suppressing of "out of" anouncements to landmarks only? We can always readd groups and articles if it is suggested as such and people have good reasoning. |
Yes, I agree with just doing it for landmarks.
|
Link to issue number:
Supersedes #10444
Supersedes #10425
Fixes #10095
Fixes #10083
Fixes #9485
fixes #9177
Fixes #5326
Landmarks
Summary of the issue:
The following issues arose after merging #10110
Description of how this pull request fixes the issue:
Groupings
Summary of the issue:
Aria role grouping is not conveyed by NVDA. This also applies to other grouping types, like fieldsets and figures.
Description of how this pull request fixes the issue:
Added the ability to report groupingsin browse mode. It can be disabled using the document formatting category of NVDA's settings. Groupings are only reported when they have a label, legend or caption.
General changes
The end of articles is no longer reported, similar to landmarks, regions and now also groupings. End of figures is reported.
Testing performed:
Tested the following test case:
Landmarks and groupings test case.htm.txt
Tested in Firefox, Chrome, Internet Explorer and edge classic
Known issues with pull request:
There are several issues in Edge Classic which we can't work around:
I think we should ignored these issues for now and revaluate this text case when Edge Chromium UIA support is implemented (#10402)
There is also an issue in Internet Explorer. The legend of a fieldset isn't set to the IAccessible name of the fieldset.
Change log entry:
New features
Please update the entry about articles as follows:
In Internet Explorer, Google Chrome and Mozilla Firefox, You can now navigate by article and grouping using quick navigation scripts. These scripts are unbound by default and can be assigned in the Input Gestures dialog when the dialog is opened from a browse mode document. (Optionally report groupings (e.g. aria role group) in browse mode #9485, Support quick navigation by article in browse mode #9227)
Changes