@salesforce-ux/a11y-components

1.1.7 • Public • Published

The Accessibility Patterns Components

Travis npm package Coveralls

This repository includes:

  • Accessibility Patterns Components (found in the src/Components/)
  • A demo site (in src/Pages/)
  • Tests for the Accessibility Patterns Components (in src/Components/__tests__/)
  • Compiled versions of the repo:
    • in ES5 (in lib/)
    • in ES6 (in es/)

This repo is published to NPM.

Quick Start

  1. npm install
  2. npm start Visit: http://localhost:3000/

Updating and Publishing the Components

  1. Change the components in src/
  2. npm run build to compile the code
  3. Update the version number in package.json
  4. npm publish to publish the package

Testing the Components

Testing with Karma with Enzyme and Expect in a headless PhantomJS browser (for more on that go here)

Also using expect-element to check DOM. Not sure if needed, but expect-enzyme is also installed.

To run the tests:

  • npm run test
  • continuously: npm run test:watch
  • check coverage: npm run test:coverage

Note: there's inline styles in ListboxOption.js, Menu.js, and Tooltip.js that should eventually be removed.

Readme

Keywords

Package Sidebar

Install

npm i @salesforce-ux/a11y-components

Weekly Downloads

20

Version

1.1.7

License

MIT

Unpacked Size

71.8 kB

Total Files

17

Last publish

Collaborators

  • salesforce-ux