Currently, _taxonomy_menu_save() will save a "title" attribute by attempting to use the term description, but degrading to the term name if no description is present. This results in the title attribute being identical to the link text, which besides being redundant, is an accessibility alert.
See the following:
- http://a11yproject.com/posts/title-attributes/
- https://silktide.com/i-thought-title-text-improved-accessibility-i-was-w...
- https://www.drupal.org/node/2142699
- https://accessibilitytips.com/2008/04/14/avoiding-redundant-title-attrib...
The attached patch only adds the title text if/when the taxonomy term description is present, retaining the ability to provide "advisory" text while avoiding obviously redundant text.
Comment | File | Size | Author |
---|---|---|---|
#3 | taxonomy_menu-accessibilty-avoid-duplicate-title-text-2.patch | 632 bytes | mark_fullmer |
|
Comments
Comment #3
mark_fullmerComment #4
mark_fullmerComment #5
DamienMcKennaComment #6
DamienMcKennaThis is a reasonable fix, thank you.
Committed.