Created by: ffoodd
Our shortcode currently generates SVGs with role="img"
without any alternate text when no title
nor text
is used–which is flagged by aXe (and my very own a11y.css) as an error.
This PR ensure to set role="img"
only if we have either text
or title
, and aria-hidden="true"
otherwise.