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

Bug: Images Inserted From WP Media Library Do Not Contain Already Added Alt Text #4977

Comments

@kelasante
Copy link

Expected behavior

When using the desktop browser, the alt text is automatically added in when an image inserted from the media library contains the alt text. However, this does not happen when using the iOS app.

Actual behavior

When using the Image block, images inserted via the media library do not automatically add in the alt text.

Steps to reproduce the behavior

  1. Go to the WordPress iOS app and an image to the Media library with alt text.
  2. Add an image block and insert the image.
  3. The image does not automatically carry over the alt text from the media library.

Context

A visually impaired user, 28916050-hc, has to add alt text manually each time they insert an image from the media library into a block even if alt text has been added already.

Tested on iPhone 6 Plus, iOS 14.4.2, WPiOS 17.0
@kelasante kelasante changed the title Bug: Images Inserted From WP Media Library Do Not Contain Already Added Alt Text "Bug:" Images Inserted From WP Media Library Do Not Contain Already Added Alt Text Apr 10, 2021
@kelasante kelasante changed the title "Bug:" Images Inserted From WP Media Library Do Not Contain Already Added Alt Text Bug: Images Inserted From WP Media Library Do Not Contain Already Added Alt Text Apr 10, 2021
@sla8c
Copy link

sla8c commented Jan 28, 2022

I've investigated this issue and have some info to add. The issue is happening when the Media object from WPiOS is being converted to a Gutenberg MediaInfo object; the MediaInfo object does not have an alt property

Below is a screenshot of where this is occurring in class GutenbergMediaInserterHelper

image

@dcalhoun
Copy link
Member

I transferred this issue to the gutenberg-mobile repository as the bug relates to the block editor and impacts both iOS and Android.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment