-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Undo and Redo functions do not communicate changes #15297
Comments
See related #15292 and comment #15292 (comment) |
👋 We discussed this ticket in #design triage today. As a group, the design team would lean more towards recommending the ARIA live option for remedy in this case — it seems a little uncommon to display the undo/redo buffer alongside the undo/redo icons. |
A However, it wouldn't help users who use screen magnifiers. These users only see one small portion of the page at a time. Clicking Undo or Redo won't give them any clue about what happens. To get a better idea, on a Mac you can use the Zoom functionality this way:
In the screenshot below, that's the entire screen users see: in this scenario I'd definitely second the need for some visual feedback close to the buttons. The number of steps seems a reasonable option. |
@afercia — for users in that scenario, what sort of visual feedback would you like to see there? It seems to me that the 'buffer' suggestion from the original ticket wouldn't actually help in this specific scenario. More useful feedback might be better delivered via a temporary snackbar notification or something. I'm not sure about technical feasibility for these, but it would be cool to see messages like "Restored 3 deleted blocks", etc. |
@kjellr the idea suggested by @karlgroves makes sense to me and I'd tend to think it's worth exploring:
I didn't know anything about snackbar notifications until one hour ago, when I discovered the related PR by coincidence. I've commented on #15282 (comment) and I'd like to refrain from further comments for now 🙂 |
Thanks, @afercia. For clarity's sake: that small number wouldn't necessarily help convey what has changed, right? My understanding is that it would only convey that you can click the button X number of times in order to undo/redo changes. Are there other applications/websites that handle this well? It'd be helpful to have some great references. |
@kjellr correct, it wouldn't convey the what, but at least it would give some feedback that pressing the buttons actually did something. Reading again the proposed idea above:
|
Thanks, that makes a lot of sense. I can definitely relate to pressing |
Related: #22799 |
Undo and Redo functions do not communicate changes
Issue description
When users navigate to the Editor Top Bar after writing some content,
and use the "Undo" or "Redo" buttons, the only way to know what
changed or whether it was successful is to be able to see the page
content while activating it.
For a screen reader user, activating the control with Enter communicates
nothing, while using Space merely repeats the Space key. Some screen
readers announce when the button's state goes from enabled to disabled,
while others don't.
Low-vision users who are either zoomed-in or using screen magnification
cannot see changes caused by Undo and Redo unless their viewable area
includes the content that has changed; in this case, the only apparent
state is when they've reached the end of the Undo or Redo buffer,
because the buttons change to the disabled colors.
Remediation Guidance
One solution could be an
aria-live
region which describes thechange. For example, if a block creation was undone, the live region
text might be "Block deleted."
Another idea, which would assist low-vision and assistive technology
users, would be to add a small number next to the button (similar to a
notifications-icon number) showing the number of Undo or Redo actions
which are left in the buffer; this number could then be removed when the
button is disabled. A screen reader user can then have the live region
state how many actions are remaining, and changes to this value would
then communicate that an Undo or Redo has occurred (to confirm, for
example, that the action has only happened once, rather than multiple
times due to holding the Space bar down for too long).
Relevant standards
(Level A)
(Level A)
Note: This issue may be a duplicate with other existing accessibility-related bugs in this project. This issue comes from the Gutenberg accessibility audit, performed by Tenon and funded by WP Campus. This issue is GUT-10 in Tenon's report
The text was updated successfully, but these errors were encountered: