ndiego / icon-block

Effortlessly add SVG icons and graphics to your website.
https://nickdiego.com/projects/icon-block/
GNU General Public License v2.0
104 stars 14 forks source link

The role attribute assigned to the SVG can cause ADA compliance issue #7

Closed ndiego closed 2 years ago

ndiego commented 2 years ago

This issue was reported here: https://wordpress.org/support/topic/the-role-attribute-to-svg-cause-ada-compliance-issue/

The role=”img” attribute you give to your inbuilt svg cause ADA compliance issue, for example look at this site ADA result https://siteimprove.com/en-us/accessibility/result/?website=https://valleyfootanklecenter.com/ (see the last error “WAI-ARIA image is missing alternative text”) I think you should either remove role=”img” or provide an input field to add custom area-label attribute value.

ndiego commented 2 years ago

This issue addressed in version 1.1.0, which features the addition of an "Icon label" field. This field adds an aria-label attribute to the svg icon.