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 lead images #2838

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

Comments

Projects
2 participants
@skleinfeldt
Copy link

commented Apr 14, 2019

When creating or editing a content item with a lead image (such as a News Item or a custom type that uses the lead image behavior), 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 the content item is viewed. The image's markup should never include a title attribute. The content item's title is displayed on the page and thus read by screen readers, putting that information in the title attribute of an image would be redundant. Alt text is the proper way to convey the image's meaning to those using screen readers. Note that when displaying the 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 this is a required field.

Field name: Alt Text

Help text: Briefly describe the meaning of the lead image for people using assistive technology like screen readers. Do not duplicate the object's 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/

@skleinfeldt

This comment has been minimized.

Copy link
Author

commented Apr 23, 2019

Same comment as #2837 (comment)

@hvelarde

This comment has been minimized.

Copy link
Member

commented Apr 23, 2019

In this case I don't agree with you: a lead image can be anything and can be used in many ways; forcing the alt text attribute is no the right thing to do, IMO.

@skleinfeldt

This comment has been minimized.

Copy link
Author

commented Apr 23, 2019

@hvelarde in that case the lead image alt text implementation should offer the same functionality as #2836 (if alt text is empty a comment is provided as to why), would you agree?

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.