Page MenuHomePhabricator

Images used in the user interface should have alt text
Closed, ResolvedPublic

Description

Author: apb

Description:
All images that are used as part of the user interface should have
sensible alt text.

Example 1: In the enhanced recent changed display, when there are
several changes to the same article, there's an image of a blue triangle
pointing to the right; clicking on the triangle invokes some javascript
that changes it to a blue triangle pointing down. I think alt="+" and
alt="-" would be appropriate here, but both images currently have
alt="".

Example 2: In the 1.4 software currently installed at test.wikipedia.
org, redirects are displayed using an image. I think that alt="REDIRECT
" would be appropriate, but the image currently has alt="Image".

I suppose all this should be customisable via messages in the MediaWiki
namespace, but sensible hardcoded alt text would be better than the
non-sensible hardcoded alt text we have now.


Version: unspecified
Severity: normal

Details

Reference
bz532
ReferenceSource BranchDest BranchAuthorTitle
repos/releng/release!56undeploy_listingsmainladsgroupStop branching Listings extension
Customize query in GitLab

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 6:56 PM
bzimport set Reference to bz532.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

Agreed, it makes sense to have useful alt text.

michael wrote:

"This page redirects to " would be better alt text for the example. Unambiguous plain English, normal capitalization.

ayg wrote:

Minor patch to fix two more instances

The two complaints in the first comment have been addressed. Grepping for
"<img", I only found two that didn't have alt text, outside of the parser
tests; one is in config and the other is in Exception.php, so they're both
borderline trivial. Any others?

Attached:

lcarsdata wrote:

Just one extra thought, the powered by icon currently uses the alt text "MediaWiki".
IMO it would be better to use the text "Powered by MediaWiki" as that is what the
icon reads and "MediaWiki" would make no sense to someone who is using a screen
reader or has images disabled.

ayg wrote:

A couple of tweaks in r18502. All interfaces images now seem to have
appropriate alt text.