-
Notifications
You must be signed in to change notification settings - Fork 753
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
[ISSUE#1818][MAS4.1.2] [Screen Reader-Debug] Screen reader is not reading the state for Expanded or collapsed control #1863
Conversation
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.
I pulled the branch down and tested it and found an issue:
The aria-expanded
attribute isn't being added to the <li>
tags when they are initialized for the first time, it is only being added on a click event. This means that the screen reader won't read the expanded / collapsed states until after they are expanded or collapsed for the first time via mouse / keyboard.
Before clicking:
After clicking:
The tree needs to be accessible when it is rendered for the first time.
Thanks @tonyanziano for the feedback. We'll test it again and fix it! |
@tonyanziano we finished applying the changes. Now it's ready for review! Thanks! |
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.
Looks good!
Solves #1818
Description
With this PR we enabled the screen reader to identify when the elements of the JSON viewer extension are
expanded
andcollapsed
.Changes made
Since the screen reader wasn't reading the
aria-expanded
property from theul
tags, we added that property to the parentli