Page MenuHomePhabricator

Insert file dialog should ask for alt text
Open, MediumPublic

Description

For accessibility reasons, alt text should be included for any images that are not purely decorative. The WikiEditor insert file dialog should include this option.

The equivalent VisualEditor dialog already has a field for alt text, and a good explanation message (visualeditor-dialog-media-alttext-section-help) that could be used:

You can use this to write a text description for people who can't see the item. The description should be enough for them to understand the purpose and information given by the media item. This is vital for blind users and other people using screen-reader software or text-only browsers.

Of course another way to fix this would be T209059: Replace WikiEditor widgets with OOUI-based (VisualEditor) components but I don't know if that might be contentious.

Event Timeline

Pcoombe created this task.Aug 9 2020, 9:21 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 9 2020, 9:21 PM

Here is an example how I envision how it could look like. Possibly add a checkbox to re-use Caption field as Alt text.

Thank you.

Change 635053 had a related patch set uploaded (by Ammarpad; owner: Ammarpad):
[mediawiki/extensions/WikiEditor@master] Allow specifying alt-text in File dialog

https://gerrit.wikimedia.org/r/635053

Ammarpad claimed this task.Oct 20 2020, 6:22 AM
Ammarpad triaged this task as Medium priority.
Conny added a subscriber: Conny.Fri, Nov 27, 4:50 PM
KH32 added a subscriber: KH32.Sat, Nov 28, 10:51 AM