Skip to content
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

Image: Duplicate content can be read by screen reader in lightbox #55255

Open
artemiomorales opened this issue Oct 11, 2023 · 0 comments
Open
Labels
[Block] Image Affects the Image Block [Type] Bug An existing feature does not function as intended

Comments

@artemiomorales
Copy link
Contributor

artemiomorales commented Oct 11, 2023

Description

Currently, there's a double image in the lightbox, for the responsive and enlarged image, that cause Safari + VoiceOver to announce 'web dialog with 3 items' when the modal dialog opens:

-The close button
-The first image
-The second image

273849081-e69b6fff-24b9-4e75-818d-f0180e1dfc1f

The first and second images are duplicate content and confusing.

Instead of overlaying the two images, one of them should be hidden and only revealed when necessary (while hiding the other one)

Step-by-step reproduction instructions

  1. An image to a post
  2. Enable 'Expand on Click' in the block settings
  3. Publish and view the post using VoiceOver on Safari
  4. Navigate to the lightbox and open it
  5. See that VoiceOver erroneously announces that the dialog has three items

Additionally:

  • Attempt to use Control + Option + Arrow Keys and see that Safari cycles through the duplicate content.

Screenshots, screen recording, code snippet

273849081-e69b6fff-24b9-4e75-818d-f0180e1dfc1f

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@artemiomorales artemiomorales added [Type] Bug An existing feature does not function as intended [Block] Image Affects the Image Block [Feature] Interactivity API API to add frontend interactivity to blocks. labels Oct 11, 2023
@artemiomorales artemiomorales moved this to Dev Backlog in Image Lightbox Oct 11, 2023
@artemiomorales artemiomorales changed the title Image: Lightbox screen reader behavior can be improved Image: Duplicate content can be read by screen reader in lightbox Oct 11, 2023
@artemiomorales artemiomorales moved this from Dev Backlog to Project Backlog in Image Lightbox Oct 11, 2023
@luisherranz luisherranz removed the [Feature] Interactivity API API to add frontend interactivity to blocks. label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Image Affects the Image Block [Type] Bug An existing feature does not function as intended
Projects
No open projects
Status: Project Backlog
Development

No branches or pull requests

2 participants