-
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
Native Image component includes outdated accessibility hint #45124
Comments
I explored fixing this briefly, but paused as it was not completely clear if the label should be removed or updated. The a11y hint/state/action also appears to spread across the Image component and Image/Media & Text edit components. Both the Image and Media & Text edit components support various actions depending upon the state of the media, so we should likely have a dynamic accessibility hint. gutenberg/packages/block-library/src/image/edit.native.js Lines 331 to 346 in 88a1f7a
gutenberg/packages/block-library/src/media-text/media-container.native.js Lines 88 to 107 in 88a1f7a
|
Good point @dcalhoun , it's true that the Image component depending on its state should provide different actions. Hence, I also lean towards implementing a dynamic accessibility hint depending on that. However, I'm wondering if we could do this in two steps:
WDYT? |
@fluiddot yes, I agree it likely makes sense to fix the erroneous a11y first, then follow up with more robust, dynamic a11y labels. |
Description
When using a screen reader to navigate images in the native editor, an erroneous "Double tap and hold to edit" hint is read aloud. This discrepancy likely originates from #40651.
Step-by-step reproduction instructions
Expected behaviour
An accurate hint is read aloud, e.g. "Double tap to view larger."
Actual behaviour
An inaccurate hint is read aloud: "Double tap and hold to edit."
Screenshots or screen recording (optional)
RPReplay_Final1666189917.MP4
WordPress information
Device information
The text was updated successfully, but these errors were encountered: