Git Product home page Git Product logo

Comments (7)

ctcpip avatar ctcpip commented on July 22, 2024 2

It was easier just to write an automated way to do the whole thing. Thanks for the inspiration! Check out the limitations section though... Nothing we can do about the text in many cases, until it's fixed on their end.

https://github.com/ctcpip/a11y-markdown-badges

from markdown-badges.

mehtaAnsh avatar mehtaAnsh commented on July 22, 2024 1

Hey @ctcpip , we do not have any guidelines to meet a11y requirements. If you do find any errors, you can create a Pull Request and I would gladly merge it.

@Ileriayo can we think of any pre-commit hook/action that can check for these guidelines? It can be easily managed then.

from markdown-badges.

ctcpip avatar ctcpip commented on July 22, 2024 1

@mehtaAnsh - I've been busy... check out a11y badges -- and my readme for a full demo. thanks again for the inspiration!

from markdown-badges.

ctcpip avatar ctcpip commented on July 22, 2024

FWIW, I did spend some time writing a parser to extract each fg and bg color and check the contrast ratio, and output any that did not meet the requirement. However, due to inconsistencies and lack of uniformity, it became clear it would need to handle all these edge cases.

To move forward, I would have to first write a general validator for each entry, fix the anomalies by updating the readme, and then could run it through the contract check parser. Ideally, both of these tasks would be part of either a pre-commit hook, or an action required to pass in order to merge. (But only after fixing all the existing issues first, or it would never pass.)

from markdown-badges.

mehtaAnsh avatar mehtaAnsh commented on July 22, 2024

That's a great way to implement. We can have something similar like this here in the form of a pre-commit hook.

from markdown-badges.

mehtaAnsh avatar mehtaAnsh commented on July 22, 2024

The implementation looks great. Can't think of any way to integrate this with this repository as of now. Great work!

from markdown-badges.

ctcpip avatar ctcpip commented on July 22, 2024

closing in favor of a11y-markdown-badges / a11y-badges

from markdown-badges.

Related Issues (20)

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.