Movers: description text for horizontal movement is incorrect with multiple selection #25158
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Describe the bug
Noticed while working on #24894
Some blocks can be moved horizontally, for example the buttons in the "Buttons" block and the Social icons.
In this case, the mover buttons aria-label (and tooltip) correctly says "Move right" or "Move left" instead of down and up.
However, there's also some descriptive text used for the
aria-describedby
attribute that provides more info on the position etc. This descriptive text is correct when there's only one block selected. See in the screenshot below, with just one button selected the text is: "Move Button block from position 1 right to position 2":Instead, the text is not correct when there's more than one block selected. See in the screenshot below, with two buttons selected the text is: "Move 2 blocks from position 1 down by one place":
Where "down" is wrong and it should be "right".
Similarly, when moving to left. There's some logic in place to build these strings and it should be reviewed. Also, checking what happens with RTL languages is important.
Editor version (please complete the following information):
The text was updated successfully, but these errors were encountered: