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

Allow or force editors to provide alt text for Image content items #2837

Open
skleinfeldt opened this issue Apr 14, 2019 · 3 comments

Comments

Projects
2 participants
@skleinfeldt
Copy link

commented Apr 14, 2019

When creating or editing an Image content item, there should be a (new) field for entering alt text. The contents of this field should be put into the alt attribute of the image when it is viewed by itself (as an image object). The image's markup should never include a title attribute. This is considered redundant to the alt text which is the proper way to convey the image's meaning to those using screen readers. Note that when displaying the image object the Title and Description will show and will be read by screen readers; the alt text should be a non-redundant description of the image itself.

If the accessibility control panel (#2834) is set to force editors to enter alt text for images, then the alt text field will be required.

Field name: Alt Text

Help text: Briefly describe the meaning of the image for people using assistive technology like screen readers. This will be used when the image is viewed by itself. Do not duplicate the Title or Description fields, since they will also be read by screen readers. Alt text should describe what a sighted user sees when looking at the image. This might include text the image contains, or even a description of an abstract pattern. This field should never be left blank on sites that want to be compliant with accessibility standards.

@hvelarde

This comment has been minimized.

Copy link
Member

commented Apr 23, 2019

The alt text attribute can be empty indeed; it has to be present, but it can be empty:

https://webaim.org/techniques/alttext/

@hvelarde hvelarde removed the 01 type: bug label Apr 23, 2019

@skleinfeldt

This comment has been minimized.

Copy link
Author

commented Apr 23, 2019

@hvelarde please see #2836 which describes the situations when alt text should be empty. These situations can occur when an image is used within rich text. That is a different piece of alt text, which is filled out by the editor of the rich text when inserting the image, to convey the meaning of the image in context. The situations when alt text should be empty won't occur when an Image object is displayed on its own, thus the alt text in this case should always be present and describe the image.

Therefore @polyester and I decided the current behavior is a bug, in addition to the feature request associated with #2834.

@hvelarde

This comment has been minimized.

Copy link
Member

commented Apr 23, 2019

thanks, in this case I agree with you; nevertheless an issue can't be a feature request and a bug report at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.