lauriii / umami

[Deprecated] Umami is now included in Drupal Core. All further work happens there.
https://www.drupal.org/project/issues/drupal?component=Umami+demo
GNU General Public License v2.0
18 stars 5 forks source link

Accessibility considerations for icons and SVGs #138

Closed cehfisher closed 6 years ago

cehfisher commented 6 years ago

Need to review the use of icons/SVGs from an accessibility perspective. Depending on how they were added to the site and/or how they are being used, additional elements might need to be added to make more user-friendly.

From @fuzzbomb:

Icons may need text alternatives, but it depends where they get used.

The SVGs in the patch have elements. Note text alternatives should be translatable. For standalone SVGs which can be reused, isn't the best approach for text alternatives, which need to vary in context.

fuzzbomb commented 6 years ago

There's a missing word in the quote above. It originally said:

The SVGs in the patch have <title> elements.

I think this comment was lifted originally from d.o and some tags got stripped out.

fuzzbomb commented 6 years ago

I noticed a couple of other things. The use of SVG titles and descriptions, together with ARIA labelling, is over-keen.

This particular example isn't actually harmful, but it's messy and could be a maintenance risk.

thamas commented 6 years ago

The comment above is about #130. Is there any other svg to be improved? (Maybe open a separate issue for every svg which should be changed…)

fuzzbomb commented 6 years ago

Follow-up has been created on Drupal.org

Remove unnecessary TITLE and DESC elements from Umami SVG files