Page MenuHomePhabricator

Insert file dialog should ask for alt text
Closed, ResolvedPublic

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

mediawiki_insert_image.png (1×1 px, 304 KB)

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 triaged this task as Medium priority.

For context, here is the same inteface in VisualEditor:

visualeditor alt text.png (709×532 px, 31 KB)
visualeditor alt text 2.png (709×655 px, 58 KB)

Change 635053 merged by jenkins-bot:
[mediawiki/extensions/WikiEditor@master] Allow specifying alt-text in File dialog

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