Conversation
|
Size Change: +5 B (0%) Total Size: 2.45 MB
ℹ️ View Unchanged
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Flaky tests detected in ee5de6a. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/19054815970
|
Mamaduka
left a comment
There was a problem hiding this comment.
This test went well on my end, but I would defer @joedolson and @talldan for a11y-related feedback.
|
What are the steps for testing it? I can see there's a tree and tree items in the DOM, but I'm not sure if I'm testing the expand/collapse correctly? Is it this? If that's the case, then I feel like the For a start, I think there are expectations from users about how keyboard navigation should work when they enter a Having tested the PR, it looks like each conversation is much simpler than a tree, and is a stack of messages with no branching. One aspect that I think it going to be a bit challenging for any implementation is that the last message ends up orphaned and not part of the collapsed messages. Here's what I'd consider looking into if I were implementing it, but I'm not an a11y expert by any stretch:
edit: Here's some 'diagrams' of what I mean: Collapsed List
Expanded List
Something else you may have to contend with is that there's no affordance for collapsing the list of messages, you can expand, but it looks like once it is expanded, the only way to collapse is to select a different block. |
|
@talldan Thanks for the detailed feedback!
Sorry for the insufficient explanation. If you would like to test this using a keyboard, focus on a note that has the 82571b67b5c350ca026a69a5cb926e6f.mp4
I agree. The Notes sidebar should probably also be controllable with the arrow keys, similar to the List View, but that would be a future enhancement.
Yes, I think this is the most difficult point. Therefore, for now, I have tried an approach that does not group the replies together.
Pressing the escape key while in the note allows you to ccollapse the note. |
|
The Beta3 release is coming soon, and to allow for further discussion on the correct approach, I'm punting this PR to 6.9.1. If it doesn't make it into the minor release either, I'll punt it to 7.0. |
|
Based on #72594 (comment), I added an cc @joedolson |
|
Thank you @t-hamano for updating this so quickly from @joedolson's feedback! |
|
@joedolson Thanks for the review! Let's backport this PR to 6.9. |
* Notes: Improve accesibility tree * "New Note" to "New note" * Add aria-label to tree element Co-authored-by: t-hamano <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: joedolson <[email protected]> Co-authored-by: talldan <[email protected]> Co-authored-by: jeffpaul <[email protected]> Co-authored-by: adamsilverstein <[email protected]>
|
I just cherry-picked this PR to the wp/6.9 branch to get it included in the next release: 329d05c |

Closes #72594
What?
Assign appropriate roles to the Notes sidebar to improve accessibility.
Why?
I think there are at least two problems with the current implementation:
listitemelement is expandable. As this comment indicates, thelistitemrole may be inappropriate for expandable elements.How?
Construct a tree structure as follows.
Adding a first note
Notes (Expanded)
Notes (collapsed)
Testing Instructions
Open your browser console and enable DOM tree view:
Ensure that the Note's tree structure is properly configured.