Giter Club home page Giter Club logo

colour-contrast-checker's Introduction

Netlify Status

Colour Contrast Checker

CLI Commands

# install dependencies
yarn

# serve with hot reload at localhost:3000
yarn start

# build for production with minification
yarn build

# test the production build locally
yarn serve

# run tests with jest
yarn test

colour-contrast-checker's People

Contributors

alexc-code avatar dependabot[bot] avatar pushedskydiver avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

colour-contrast-checker's Issues

Make colour swatches accessible

Currently when navigating to the swatches via a screenreader, there is no information about what background and foreground colour is on the swatch and that you can append the colours.

Add APCA support/toggle?

Do you want to request a feature or report a bug?
Feature

What is the current behaviour?
N/A

If the current behaviour is a bug, please provide the steps to reproduce.
N/A

What is the expected behaviour?

If this is a feature request, what is motivation or use case for changing the behavior?
APCA is a fairly new and better way to calculate colour contrast. It will be introduced as the way to check in WCAG 3.0 but other tools such as Stark have started implementing a toggle so can check both WCAG conformance contrast and APCA.

Please mention other relevant information.

  • Node version
  • npm version
  • Operating system
  • CLI version
  • Browser

Incorrect example copy font sizes

Re: the font sizes at the bottom of the Colour Contrast Checker web page:

Screenshot of example copy.

The headings are "large text - 14pt" and "normal copy - 16px".

WCAG 2.1 defines "large text" as "at least 18 point or 14 point bold". The Understanding Success Criterion page further states that "The ratio between sizes in points and CSS pixels is 1pt = 1.333px, therefore 14pt and 18pt are equivalent to approximately 18.5px and 24px". Since the large text's example copy is not bold, its font size should be 18pt/24px, not 14pt/18.5px.

Bug: Unexpected autocompletion

Bug Report

What is the current behaviour?
When entering "#f0f0", the app autocompletes to "#ff00ff".

bug.mov

What is the expected behaviour?
There should be no autocompletion for the given value, as values like "#F0F0F0" couldn't be entered otherwise.

Please mention other relevant information.
CHROME VERSION |   | 102.0.5005.61
OS VERSION |   | Mac OS X: 12.2.0

Colour Contrast Checker won't launch in Brave

Do you want to request a feature or report a bug?

Bug

What is the current behaviour?

It's not working

If the current behaviour is a bug, please provide the steps to reproduce.

Click the icon nothing happens in Brave Version 1.17.73 Chromium: 87.0.4280.67 (Official Build) (x86_64)

What is the expected behaviour?

The panel should launch

If this is a feature request, what is motivation or use case for changing the behaviour?

Please mention other relevant information.

  • Node version
  • npm version
  • Operating system
  • CLI version
  • Browser

Tool itself can have insufficient contrast

Since the background color changes based on the colors being compared, the tool itself can fail WCAG contrast requirements.

When I compared #C4C4C4 and #FFFFFF, the page heading ("colour contrast checker) and HSL sliders fail contrast requirements:
Screenshot of #C4C4C4 and #FFFFFF comparison in the browser extension.

In this example, the background colour is #C4C4C4 (contrast of 1.74 to background), the heading color is #FFFFFF, and the slider bars are #939393 (contrast of 1.76 to background).

I would recommend not changing the whole tool's background colour, and having a preview swatch instead.

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.