Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292486

Discourage non-inclusive use of the HTML title attribute

$
0
0

Problem/Motivation

Drupal core (and contrib) currently makes heavy use of the HTML title attribute.

It's a problem because the title attribute isn't very accessible. Many groups of users cannot perceive content in a title attribute at all. It must not be used for important information, which pretty much means all information in Drupal's admin UI.

At best, the title attribute can only be considered as bonus content for sighted users with a hover-capable pointer. 15 years ago, you could claim that group was a majority, but since touch-screen devices became ubiquitous that's no longer a reliable claim.

Wordpress and Joomla have both been removing a lot of uses (and support for) the title attribute.

Proposed resolution

Vastly reduce the number of places where the HTML title attribute is used in Drupal core. Discourage developers from using it in

  1. In some cases we can just remove them wholesale.
  2. In other cases, we may need to tread more carefully and consider the impact on existing sites. A deprecation period may be justified.
    • For example, some JS image lightbox overlay plugins use the title attribute on an <img> tag as the source for a visible caption. A better practice nowadays is to use custom data-* attributes, but much legacy code may be in use.
  3. Discourage the use of the title attribute in documentation and form descriptions. This is a way to address the author-guidance parts of ATAG (authoring tools accessibility guidelines).
    • For example, add a warning to the Image Field type configuration form (and widget?) about accessibility problems with using the title attribute.
  4. Discourage use of the title attribute by developers, site builders, and authors. Look for handbook pages which can be updated.

Remaining tasks

Survey all places where we use the title attribute. For each one, assess it using the guide at Using the HTML title attribute.

Use child issues to remove title attributes which are not serving a good purpose.

TODO: how to organize this? It's a big survey!

User interface changes

Vastly reduce the number of places where the HTML title attribute is used in Drupal core.

API changes

Maybe? We might end up deprecating or removing some API methods/properties which support poor usage of the title attribute.

Background reading


Viewing all articles
Browse latest Browse all 292486

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>