Skip to content

a11ywatch/accessibility-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

accessibility-calculator

The web accessibility calculator used at A11yWatch.

The source code is setup to be view only and not something to start up. In order to use the code you need to drop it in your project by copying the code and making some adjustments.

Required Modules

The code used has some modules that we depend on to help improve the experience. The also depends on next.js since that is what we use at A11yWatch for the client.

Install the following for the application:

  1. react
  2. next-translate
  3. @nivo/core
  4. @nivo/bar
  5. react-lag-radar
  6. react-icons
  7. @headlessui/react
  8. prettier
  9. chance

Install the following for testing comparison:

  1. kayle
  2. [email protected] - used to load deps missing for browser

Install dev modules:

  1. typescript
  2. tailwindcss

Optional: setup your translations with a target named oss-accessibility-benchmarks

Getting Started.

import { CalculatorProvider } from './calculator/provider'
import { RenderCalculatorApp } from './calculator/render-intro'
import { RenderCalculatorApp } from './calculator/render'

export const OSSWebAccessibilityBenchmarks = () => {
  const { lang } = useTranslation('oss-accessibility-benchmarks')

  return (
    <CalculatorProvider lang={lang}>
        <>
            <RenderCalculatorIntro />
            <RenderCalculatorApp />
        </>
    </CalculatorProvider>
  )
}

In the future we plan on releasing it as an npm package that could be included. It should take very minimal changes to get the project up and running.