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

feat: blur images with missing or unhelpful alt tags #390

Merged
merged 1 commit into from
Sep 10, 2020

Conversation

greatislander
Copy link
Member

  • This pull request has been linted by running npm run lint without errors
  • This pull request has been tested by running npm run start and reviewing affected routes
  • This pull request has been built by running npm run build without errors
  • This isn't a duplicate of an existing pull request

Description

This PR implements a CSS utility to blur images which have either a missing alt tag or an alt tag beginning with This image has an empty alt attribute (see #389). Images with alt tags which are present but empty are assumed to be decorative and are unaffected.

Steps to test

  1. Check out this branch.
  2. Run netlify dev.
  3. Visit the badges page.

Expected behavior: Badge images are blurred.

Additional information

Adapted from platform-coop-toolkit/pinecone#230.

Related issues

Not applicable

@greatislander greatislander added the enhancement New feature or request label Sep 10, 2020
@cindyli cindyli merged commit 6fd361a into dev Sep 10, 2020
@cindyli cindyli deleted the highlight-missing-alt-text branch September 10, 2020 13:48
@cindyli
Copy link
Contributor

cindyli commented Sep 10, 2020

Thanks for the fix, @greatislander. Blurred images are good warning signs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants