Skip to content

Tree: set aria-setsize and aria-posinset #27900

Description

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.

/cc João Moreno (@joaomoreno) Isidor Nikolic (@isidorn)

Activity

  1. added
    accessibility
    tree-widget
    on Jun 2, 2017
  2. isidorn commented on Jun 2, 2017

    @isidorn

    Makes sense, I can look into it in june

  3. isidorn commented on Jun 19, 2017

    @isidorn

    Accidently closed this by PR which only address the list widget, still gotta do it for the tree

  4. isidorn commented on Jun 20, 2017

    @isidorn

    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.

  5. changed the title [-]Tree/List: set aria-setsize and aria-posinset[/-] [+]Tree: set aria-setsize and aria-posinset[/+] on Jun 20, 2017
  6. alexdima commented on Jun 20, 2017

    @alexdima
    Member

    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 ?

  7. isidorn commented on Jun 20, 2017

    @isidorn

    +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.

  8. bpasero commented on Jun 20, 2017

    @bpasero
    ContributorAuthor

    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.

  9. isidorn commented on Jun 20, 2017

    @isidorn

    I have created this issue to track it #29096

  10. added a commit that references this issue on Jun 20, 2017
    5241c72
  11. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

accessibilityrelease-notestree-widget

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions