Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flag images without alt text #26

Merged
merged 5 commits into from Jul 5, 2023
Merged

Flag images without alt text #26

merged 5 commits into from Jul 5, 2023

Conversation

kendallgassner
Copy link
Collaborator

@kendallgassner kendallgassner commented Jun 28, 2023

resolves #23

What

I am adding a couple new flags:

  • Flags when an image tag contians <img alt='' ...
  • Flags when a markdown image is empty ![]
  • Flags when an images does not contain alt text <img />

Our CI was not actually failing when a test failed. I fixed this by adding exit 1 when a unit test failed.

@kendallgassner kendallgassner changed the title [WIP]: Flag images without alt text Flag images without alt text Jun 28, 2023
flag-alt-text.sh Outdated Show resolved Hide resolved
Comment on lines +62 to +63
echo "Detected bad alt text: ${flag}"
echo "Event type: $type"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice and clear!

Copy link
Contributor

@khiga8 khiga8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work 🎉

@kendallgassner kendallgassner merged commit b5828a5 into main Jul 5, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flag images with no alt text at all
2 participants