Code Monkey home page Code Monkey logo

alt-text's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar jsnmrs avatar katydecorah avatar muescha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

muescha

alt-text's Issues

Git.io deprecation effective immediately

@katydecorah looks like we need to find a replacement for https://git.io

Git.io is a URL shortening website that GitHub created in 2011 for redirecting to GitHub domains like github.com and github.io. What began as an experiment was only lightly documented and thus not heavily used.

GitHub is not uniquely qualified to run this type of service. There are many URL shortening services available today that have more capabilities than git.io. At GitHub, we want to focus on building great developer tools and cede URL shortening to companies and teams who provide it as a core offering.

For these reasons, we have disallowed new link creation on git.io. We encourage using one of the many URL shortening services that are available, instead of git.io, as it likely will be fully deprecated at some yet to be determined date.

via https://github.blog/changelog/2022-01-11-git-io-no-longer-accepts-new-urls

How to respond to empty string or undefined/null?

We'll need to catch empty string and undefined values as right now they'll fail with TypeError: Cannot read property 'toLowerCase' of undefined.

@jsnmrs how should alt-text respond to:

  • an empty string altText('') - an empty string is technically correct for decorative images, should we still warn and provide that feedback?
  • undefined altText() - should this return the same message regarding missing alt attribute? in thinking how how someone could supply undefined, it's likely there isn't an alt attribute at all ๐Ÿค”

Create exactMatch list

separate list for exact (full) matches. List should include:

  • image
  • graphic
  • photo
  • photograph
  • drawing
  • painting
  • artwork
  • logo
  • bullet
  • button
  • arrow
  • more
  • spacer
  • blank
  • chart
  • table
  • diagram
  • graph
  • "*" (bullet)
  • " " (space)

The standalone test for a single space can't be removed afterwards.

Include sounds files in documentation

We should consider adding sounds files of a screen reader reading alt text in the documentation. This can help the developer hear the differences between the recommended and discouraged alt text.

add test for alt = filename

add test for:

alt text matches filename

![myimage.png](./images/myimage.png)

![https://raw.githubusercontent.com/strapi/strapi-starter-gatsby-blog/master/medias/skip.png](https://raw.githubusercontent.com/strapi/strapi-starter-gatsby-blog/master/medias/skip.png "screen shot of sample cut and paste webhook url") 

Provide passing versus warning examples in documentation

It could be helpful to provide a passing versus warning example for some of the rules, for example:


Alt text should not end with

Warning: Alt text should not end with "<.jpg|.jpeg|.gif|.png|.svg|.webp|image|graphic>"

  • โœ… A child holding a photograph.
  • ๐Ÿšซ child.jpg

Group tests by rule

We should group tests by rule and add labels to better organize and document intent for each test.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.