code-dot-org / ml-activities

This is the repo for AI for Oceans from Code.org.
https://code-dot-org.github.io/ml-activities/
Apache License 2.0
5 stars 7 forks source link

Add blank alt text for decorative images #400

Closed bencodeorg closed 8 months ago

bencodeorg commented 8 months ago

We sometimes use decorative images alongside "guides" that appear in our AI for Oceans tutorial (eg, the water bottle in the screenshot below -- excuse the 🔴 red outline, irrelevant to this PR). These do not require alt text, per accessibility best practices.

image

Follow-up work

There are other accessibility issues noted with this component (from accessibility audit) that Sam shared with me. The header is straightforward (I think should be h2?), but I'm having issues getting the ml-playground repo integrated with code-dot-org and would cause some major styling diffs that I can't really debug. The others require reimplementing this as a modal, which I think is out of scope.