Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 months ago

#39180 closed defect (bug) (duplicate)

Alt Text entry field should be expandable, double line

Reported by: markciotola's profile markciotola Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: Cc:


In the Media Library, in the metadata entry area (see below image), the Alt Text entry field should be expandable, just as the Caption and Description fields are. This is because the Alt Text field should ideally include sufficient detail that a visually-impaired reader could gain all of the information from the media item (e.g. image) from only the Alt Text contents.

Using WP 4.6

In fact, this field should be at least have two lines to encourage entry of sufficient details.

See WCAG 2 guidelines

Attachments (1)

Alt_text_field_issue.png (53.0 KB) - added by markciotola 8 years ago.
Image of meta data area

Download all attachments as: .zip

Change History (5)

8 years ago

Image of meta data area

#1 @swissspidy
8 years ago

  • Component changed from General to Media

This ticket was mentioned in Slack in #accessibility by joemcgill. View the logs.

8 years ago

#3 @joemcgill
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from new to closed

Hi @markciotola,

Thanks for the suggestion and welcome to Trac. While I support the desire to encourage people to add useful alt text, I don't think turning this field into a multi-line textarea is the right approach. Unlike caption and description, the alt text ends up being used as an attribute value on the img element itself, which doesn't support things like line breaks within the text.

The current input itself supports very long strings of text, so people aren't limited on that front. If anything, we might be able to add some kind of help text to encourage best practices, but changing the field type is probably not the way to go.

I'm going to mark this ticket as closed, maybe-later based on the specific request, but feel free to continue discussion about other ways we might help encourage best practices here.

#4 @sabernhardt
8 months ago

  • Resolution changed from maybelater to duplicate

Duplicate of #50066.

The field was changed to a textarea in r54243.

Note: See TracTickets for help on using tickets.