-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add column count to the column block label #30248
Conversation
Size Change: +5.45 kB (0%) Total Size: 1.43 MB
ℹ️ View Unchanged
|
I have tested the PR with NVDA in Chrome on Windows 10. When the columns block (the parent) is selected, it reads the labels for all inner columns: clickable Block: Columns grouping and so on. When I navigate between the column blocks the counter is announced correctly. -In the video, how did you navigate between the inner columns? Update: I can only reproduce this with NVDA. So maybe it is just about me not being sure how to navigate when the screen reader is active 🙏 |
@@ -73,6 +76,10 @@ function ColumnEdit( { | |||
: InnerBlocks.ButtonBlockAppender, | |||
} ); | |||
|
|||
const columnsCount = columnsIds.length; | |||
const currentColumnPosition = columnsIds.indexOf( clientId ) + 1; |
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.
Would getBlockIndex and getBlockOrder work for this? When I tried earlier this week I was not able to solve it.
Just interested, does anyone think this PR could conflict with what I am trying to do here? I believe I have used getBlockCount() there to grab the total. I just wonder if this would create a collision of sorts later down the road. |
Thanks for reviewing this @carolinan!
That's indeed a problem. I believe it's due to the use of the
Yes! I can confirm this. I created #30620 to track the issue as it seems to be a different thing. In the video, I used VoiceOver and VO+arrow keys to navigate through the columns. I guess we could experiment with the For now, I think this PR is good to be approved/merged as a simpler solution for the label issue. What do you think? |
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.
For now, I think this PR is good to be approved/merged as a simpler solution for the label issue. What do you think?
I personally agree with this.
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.
Thanks Diego!
Description
Closes #29804
This PR modifies the default label on the column block so it includes the position and the total number of columns in the Columns block.
How has this been tested?
Followed instructions on #29804 using VoiceOver.
ScreenFlow.mp4