-
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
Fix: the description text of block movers for horizontal movement #42393
Conversation
Size Change: +631 B (0%) Total Size: 1.25 MB
ℹ️ View Unchanged
|
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 for addressing this and adding tests!
packages/block-editor/src/components/block-mover/mover-description.js
Outdated
Show resolved
Hide resolved
packages/block-editor/src/components/block-mover/mover-description.js
Outdated
Show resolved
Hide resolved
packages/block-editor/src/components/block-mover/mover-description.js
Outdated
Show resolved
Hide resolved
packages/block-editor/src/components/block-mover/mover-description.js
Outdated
Show resolved
Hide resolved
…tion.js Co-authored-by: Daniel Richards <daniel.richards@automattic.com>
It looks like there is no problem with what we have done so far, but I can't test it in RTL language. |
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 for fixing this!
I tested in an RTL language and could reproduce the issue in trunk
and also confirm that this solves the problem.
I tested quite a few different combinations (single block selections, multi-block selections and horizontal block selections) and couldn't see any further issues, so really nice work.
Clone of #32337
Fix: #25158
This PR is newly created to reflect the latest trunk in #32337 sent from
thisissandip:fix/block-mover-description-text
.Description
The button to move the block has the following two accessibility attributes:
aria-label
: indicates the direction to movearia-describedby
: Indicates where to move to or whether to moveThis PR fixes a problem where the text indicated by
aria-describedby
does not consider the orientation if the layout orientation is horizontal.How has this been tested?
Screenshots
Horizontal layout
Select the first two blocks
Select the two blocks in between
Select the last two blocks
Vertical layout
Select the first two blocks
Select the two blocks in between
Select the last two blocks
Types of changes
Bug fix
Checklist: