Problem/Motivation
When removing a section in layout builder, after confirming it in the off-canvas dialogs, the section and all of it's nested blocks are removed from the layout builder content. This is apparent to sighted users, but the successful outcome may not be obvious to screen reader users.
Proposed resolution
Convey the outcome to assistive tech users.
Use a client-side Drupal.announce() or the server-side AJAX AnnounceCommand as appropriate.
Suggested messages:
"Removed section 2 and 7 blocks".
"Removed 3-column section and seven blocks".
Remaining tasks
Patch
User interface changes
No visual changes.
Feedback message for assitive tech users.
API changes
None
Data model changes
None
Comments
Comment #2
andrewmacpherson commentedI'm not sure how to handle the section number in this announcement. Say there are 4 sections, and you want to remove the second one. The task was called "Remove section 2" in the remove button, and the confirmation dialog. But if we announce "Removed section 2" that might be confusing, because there is now a section 2 (which used to be called section 3).
Comment #12
mgiffordtagging for https://www.w3.org/WAI/WCAG21/Understanding/info-and-relationships