Conversation
|
@mattbegent could we recommend on the no options that the role="presentation" be added to images. Developers can figure out how to implement this when a media picker is at use. For content authorship purposes with the alt text on images in the RTE, the editor will need to take ownership of the image purpose and alt text. Also, I thought the alt="" tag was required on images regardless. The question is whether to put text in the alt tag or not. I think the last item in the list saying put the alt="" tag but leave it empty threw me off and suggests that the alt tag is not required on the image in other instances. I don't believe that to be the case (I can stand to learn some things but that is my understanding of the requirements). |
Hi @bkclerke , thanks for taking at look at this. It is my understanding that you don't really need role="presentation" on decorative images and an empty alt attribute is enough for these types of images to be ignored by assitive technologies. See https://www.w3.org/WAI/tutorials/images/decorative/. For for the alt attribute, yes this is required by all images. This is meant to be covered by rule two at the begining "If no alt text is provided by the user for an image, output an empty Thanks again for taking a look 😄 |
|
@mattbegent I made a couple updates to the formatting. It sounds good though, thank you for putting it together! :) |
|
This looks great @mattbegent |
I've put together a first draft of a document intended to be a guide for developers about how they add alt text. It's inspired by https://www.w3.org/WAI/tutorials/images/decision-tree/.
Let me know what you think.