USACE / groundwork

React Components for USACE Applications
https://usace.github.io/groundwork
4 stars 0 forks source link

Create Generic Image Component #95

Open krowvin opened 1 month ago

krowvin commented 1 month ago

To meet 508 compliance we could create an \<Image> component that we can then set the

aria-label and alt - as well as exposing various sizes to help users manage their image tags.

if a user doesn't provide one of these we will set them based on the image name or something else, maybe throw an error even to make sure it's set?

adamscarberry commented 1 month ago

This is tricky.

I haven't found any examples where alt and aria-label are to be used at the same time.

https://www.section508.gov/content/guide-accessible-web-design-development/#images