-
Notifications
You must be signed in to change notification settings - Fork 350
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
Develop example of tree grid design pattern #132
Comments
Here's an example I coded up: |
Better example, with more discoverable keyboard model: |
For issue #132, this commit includes: * Initial implementation of an example treegrid with primarily tree-like behaviors. * Partial draft of example page content explaining the implementation.
Current work on this example is now in the treegrid branch of w3c/aria-practices at: |
In pull request #710, @jongund is working on modifying the example in the treeggrid branch, which is at: Jon's work can be previewed at: |
@aleventhal, what is the reason for using aria-hidden in the treegrid? |
@mcking65 I believe aria-hidden is just used for the collapsed rows which are hidden. Just semantically indicating that they are in fact hidden. |
@aleventhal commented:
Thanks ... It sounds like we should remove it then. |
@mcking65 Why is that? Does it work better with the virtual buffer? |
@aleventhal, no, just because it does not do anything; it is redundant code. In order to avoid the risk of aria-hidden unintentionally hiding things in the event it were somehow to get out of sync, we have adopted the practice of avoiding using aria-hidden at all unless it is necessary to hide something from AT that is visually rendered -- a practice we also avoid like the plague. |
I can update the code to not use aria-hidden, will use the class name "hidden". |
I have updated the code to remove the use of aria-hidden attribute and should be available as part of pull request 710 |
For issue #132, adds an example of the treegrid pattern.
For issue #132, adds an example of the treegrid pattern.
HTML Source Code > HTML Source Code > aria-level="3" > aria-posinset="1" currently is: Edit necessary: remove last 'e' in 'otherse': |
Example: |
Example: |
Example: |
Keyboard support > Shift + Tab | If a cell is focused, moves focus to the previous interactive cell in the current row. With focus on a cell in the Summary column, shift+tab focuses that entire row. This doesn't agree with the defined Keyboard support. |
Keyboard support > Control + Home | Moves focus to the first row. Both the above sets need to define what currently has focus prior to key press. Plus both state "kept in the same column" but fail to indicate what in the column gets focus on the key press. |
No further issues noted. |
Example Useage Options: Edit necessary: "Example Usage Options." Remove the first e. Looks to me like Ann got most other things! |
Hello, Sorry if this is off-topic here. Please let me know if there is a better place to discuss this. I am maintaining a treeview/treegrid control and made an experimental extension that should http://wwwendt.de/tech/fancytree/demo/sample-aria-treegrid.html Using Up, Down, Left, Right to navigate to a |
Hi Matt, it looks good. There is one thing missing though, which is the explicit column header cell associations, which is necessary for these to be conveyable when navigating the treegrid in modalities like Forms or Application Mode. This is needed in cases where treegrid cells include numerical data like population counts, averages, statistical data, and the only way to know what is meant by the data is to also announce the column header as well during navigation. So, aria-describedby needs to be added to each role=gridcell node to reference the associated column header cell. Other than that, it looks great to me. |
Revised examples/treegrid/treegrid-1.html based on feedback from @annabbott and @charmarkk in issue #132.
In commit 9cb57de, I addressed the editorial feedback from @annabbott and @charmarkk. Most was straight forward. What I changed to address this comment from @annabbott requires some explanation:
Actually, the behavior matches the documentation, but the documentation was not clear. What is meant by interactive cell, was actually interactive widget, e.g., link, button, etc. When focus is on the summary cell, there are no previous interactive widgets in the row. The only interactive widget in any of the rows is the email address link. I made two changes to clear this up. First, I added a note in front of the keyboard table. I recently added the same note to the layout grid examples to address a similar issue. The note reads:
Second, I changed the tab and shift+tab descriptions:
|
@accdc commented:
Bryan, given this is a simple grid with explicitly declared column headers, I don't understand why we would need to add a redundant relationship. It would make sense if it was a complex grid where assistive technologies would not be able to determine the header for a cell, but that is not the case here. The spec says:
In the gridcell role description, the spec says:
We could make a separate example based on a complex treegrid made from divs rather than a table element that illustrates and tests use of aria-describedby to establish header relationships. However, this example is illustrating and testing support for a treegrid where the relationship should be determined from the DOM structure. |
@mar10 commented:
Martin, does the information in the section of the grid pattern titled Keyboard Interaction - Setting Focus and Navigating Inside Cells help? The treegrid pattern references that section in a note in the keyboard section. |
Thanks all for all the awesome work on this example. I'm closing this issue and starting wide review with a new review issue, 790. 790 will include links to any known issues, of which we have one now. @accdc, if you disagree with my statements regarding aria-describedby, feel free to comment further in this issue or open a separate issue that we can reference from 790. |
@mcking65 thanks for the pointers, I wasn't aware of this. Interestingly it is pretty similar to what I tried out with my 'extended' mode. I think I am going to implement this way and enable it by default. |
@mcking65, Iam looking the tree grid example at the following URL: Keyboard navigation is very confusing. If user selects right arrow twice then the focus is shifted to each cell and now the user can expand and collapse using [enter] key. Can we change the navigation in the widget as follows: |
This issue depends on issue #91.
URL for Viewing Development Branch
This example is being developed in the treegrid branch. View it at:
https://rawgit.com/w3c/aria-practices/treegrid/examples/treegrid/treegrid-1.html
The text was updated successfully, but these errors were encountered: