gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

More descriptive alt attribute control

Open ellatrix opened this issue 9 years ago • 9 comments

Suggestion:

screenshot 2017-06-27 18 27 51

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

ellatrix avatar Jun 27 '17 16:06 ellatrix

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. :)

ellatrix avatar Jun 27 '17 16:06 ellatrix

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."

joedolson avatar Jun 27 '17 17:06 joedolson

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)?

nic-bertino avatar Jun 27 '17 17:06 nic-bertino

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.

ellatrix avatar Jun 27 '17 17:06 ellatrix

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? 🙂

afercia avatar Jun 27 '17 17:06 afercia

See also #1570

afercia avatar Jun 29 '17 09:06 afercia

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

mtias avatar Nov 20 '17 11:11 mtias

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.

jasmussen avatar Nov 20 '17 12:11 jasmussen

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

jasmussen avatar Nov 21 '17 12:11 jasmussen