Gutenberg: More descriptive alt attribute control

Created on 27 Jun 2017  路  9Comments  路  Source: WordPress/gutenberg

Suggestion:

screenshot 2017-06-27 18 27 51

Cc @joen for the patterns and @afercia for the content.

Accessibility (a11y) Good First Issue [Type] Enhancement

Most helpful comment

I think that's pretty good. I'm wondering if it can be made more concise, e.g.

"Describe the purpose of the image. Leave empty if the image is not a key part of the content."

All 9 comments

As it turns out there's quite a big process to deciding whether or not one should be used and what it should be: https://www.w3.org/WAI/tutorials/images/decision-tree/ (hat tip: @afercia). The task is to bring this over in just a line or two. :)

I think that's pretty good. I'm wondering if it can be made more concise, e.g.

"Describe the purpose of the image. Leave empty if the image is not a key part of the content."

It would be fantastic if this was pre-filled with alt text from the media library if it already exists.

I think one of my daily questions is "what should go in my alt?" I think the decision tree link is a great resource, perhaps it is something that can be linked directly from this interface (along with @joedolson's concise copy)?

It would be fantastic if this was pre-filled with alt text from the media library if it already exists.

It should be already.

I don't think it's bad to link to w3.org. It should be a stable link. :D Alternatively we might want to copy that over to somewhere on WordPress.org.

we might want to copy that over to somewhere on WordPress.org.

Or in the Gutenberg inline help. I guess there should be some inline help somewhere? 馃檪

See also #1570

@jasmussen @karmatosed this seems an easy one to do and close, what do you think?

I've started work on this one, but I think we should consider adding "help text" as something that can be passed on to the component itself, in this case the TextControl component. So going to do that before I PR.

Work done on this one. We can close this issue when #3591 gets merged.

Was this page helpful?
0 / 5 - 0 ratings