double-great / alt-text Goto Github PK
View Code? Open in Web Editor NEW๐ Check for unhelpful alt text
Home Page: https://doublegreat.dev/alt-text/
License: MIT License
๐ Check for unhelpful alt text
Home Page: https://doublegreat.dev/alt-text/
License: MIT License
We should group tests by rule and add labels to better organize and document intent for each test.
https://github.com/double-great/alt-text#end-in-a-period
Will other punctuation (like ?
or !
) also make screen readers pause a bit after the last word in the alt text? Or does that only happen for a period?
Since context is important, it could be more approachable to rename "warnings" to "suggestions" in the documentation.
@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
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")
separate list for exact (full) matches. List should include:
The standalone test for a single space can't be removed afterwards.
While updating dependencies, I noticed 11 test failures, related to TinyURL returning http://tinyurl.com...
instead of https://tinyurl.com...
. It also looks like our TinyURL dependency is no longer maintained (archived).
We should find an alternative.
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:
altText('')
- an empty string is technically correct for decorative images, should we still warn and provide that feedback?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 ๐ค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.
We should allow for each to rule to be configurable where possible, but set the default to recommendations.
It could be helpful to provide a passing versus warning example for some of the rules, for example:
Warning: Alt text should not end with "<.jpg|.jpeg|.gif|.png|.svg|.webp|image|graphic>"
To help documentation semantics
To do:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.