washingtonstateuniversity / wsu-web-design-system

The front-end markup for creating and using components in the WSU Web Design System.
3 stars 0 forks source link

Accessibility of SVG #7

Closed lesa-mcpeak closed 4 years ago

lesa-mcpeak commented 5 years ago

https://github.com/washingtonstateuniversity/wsu-web-design-system/blob/cd2f8fa0a7620271cd793bcb26359d19dabfd807/components/src/global-header/global-header.html#L44

This img should have role="img" and must have alt="search" https://www.deque.com/blog/creating-accessible-svgs/

nicdford commented 5 years ago

Hey @lesa-mcpeak thanks for this! In your opinion is SVG pattern 5 the best option for us? We're using inline svg's in the final product, so the first 4 examples are a no-go. Thanks for the feedback!

lesa-mcpeak commented 5 years ago

@nicdford I would go with pattern 11. When a desc is needed on an svg the pattern of code is already established.

nicdford commented 5 years ago

Note to self: fix #6 as part of this issue as well

nicdford commented 4 years ago

With the adoption of the WSU Icon Font Family (#23) This should remove the need for these changes except in the case of the coug head which will always be an inline svg element.

nicdford commented 4 years ago

Fixed with 095b1f241149e490feda7c9b92551bfc54a23ed1