You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tree/list is virtualized and as such a screen reader cannot make a correct statement on the number of entries. We should leverage aria-setsize and aria-posinset for that purpose within the tree and list widgets. The widgets know the number of elements to render and the currently selected items position in the set.
After looking into this with João Moreno (@joaomoreno) we have fixed this issue for the list, however for the tree the situation is a bit more complex:
It is not exactly specified what the aria-posinset and aria-setsize should be with respect to the tree structure. Should they be absolute or only relative to the siblings.
In both of the cases we have an issue that the tree smartly chooses the minimal set of elements that need to be re-rendered, so if an element A gets removed and element B is above it, B will not get re-rendered and will still have the wrong aria-setsize attribute.
Due to that we would need a bigger refactoring in order to fix this for the tree. So renaming this issue and pushing it to backlog for now.
The originating issue -- microsoft/monaco-editor#444 -- came in w.r.t. the Command Palette that displays a list. Benjamin Pasero (@bpasero) perhaps the root issue is that the implementation of the Command Palette uses a tree to display a list and that makes it difficult to express the list to Screen Readers ?
Isidor Nikolic (@isidorn) yeah +1 for using list for quick open, that would be very nice 👍 . I hope there are no things in tree that quick open depends on.
Activity
isidorn commentedon Jun 2, 2017
Makes sense, I can look into it in june
List: set aria-setsize and aria-posinset
isidorn commentedon Jun 19, 2017
Accidently closed this by PR which only address the list widget, still gotta do it for the tree
Add aria-setsize, aria-posinset for the list
isidorn commentedon Jun 20, 2017
After looking into this with João Moreno (@joaomoreno) we have fixed this issue for the list, however for the tree the situation is a bit more complex:
aria-posinsetandaria-setsizeshould be with respect to the tree structure. Should they be absolute or only relative to the siblings.aria-setsizeattribute.Due to that we would need a bigger refactoring in order to fix this for the tree. So renaming this issue and pushing it to backlog for now.
[-]Tree/List: set aria-setsize and aria-posinset[/-][+]Tree: set aria-setsize and aria-posinset[/+]alexdima commentedon Jun 20, 2017
The originating issue -- microsoft/monaco-editor#444 -- came in w.r.t. the Command Palette that displays a list. Benjamin Pasero (@bpasero) perhaps the root issue is that the implementation of the Command Palette uses a tree to display a list and that makes it difficult to express the list to Screen Readers ?
isidorn commentedon Jun 20, 2017
+1 for making the command palette use the list. I could also look into this when I get cycles if Benjamin Pasero (@bpasero) does not mind.
bpasero commentedon Jun 20, 2017
Isidor Nikolic (@isidorn) yeah +1 for using list for quick open, that would be very nice 👍 . I hope there are no things in tree that quick open depends on.
isidorn commentedon Jun 20, 2017
I have created this issue to track it #29096
AccessibilityProvider getPosInSet and getSetSize