1.1.7 • Published 3 years ago
@salesforce-ux/a11y-components v1.1.7
The Accessibility Patterns Components
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 (ines/
)
This repo is published to NPM.
Quick Start
npm install
npm start
Visit: http://localhost:3000/
Updating and Publishing the Components
- Change the components in
src/
npm run build
to compile the code- Update the version number in
package.json
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.