Giter Club home page Giter Club logo

Comments (3)

CKGrafico avatar CKGrafico commented on June 2, 2024

Thanks for your feedback!
Do you think will be enough if we just add the same as we do for :active?
image

from papanasi.

AustinGil avatar AustinGil commented on June 2, 2024

Yeah, I noticed that design treatment when I was holding the mouse button down, but it went away when I released, which was weird.

I can't tell you just by looking, but the WCAG outlines color contrast requirements for compliance https://www.w3.org/WAI/WCAG21/Understanding/non-text-contrast.html.

Unfortunately, as a library author, it's hard to say for sure because it really depends on the implementation. If the blue button is on a blue background, you wouldn't see the focus ring, but that's on the developer. I would check the contrast ratio on a white (or almost white) background, and if you want to support dark mode, then also test against the default browser Canvas color (which I dont think is black).

There's some tools that allow you to compare color contrast between two colors, but I can tell you for sure that the ring around the white button will not pass WCAG requirements when placed on a white background. It's hard to see it even without visual impairments.

I know this was a lot. Hopefully it's more good than bad :)

from papanasi.

CKGrafico avatar CKGrafico commented on June 2, 2024

Thanks for the info, I understand what you say but papanasi is not responsible about the background, I mean this library is not a boostrap, we expect that the users will change the colors adapting css variables, then is OUR problem to create code that does something when :active, :focus but not to be sure that the background is going to work :)

I'll implement this asap thanks

from papanasi.

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.