$ npm install fxos-checkbox
Then include folowing files
<link href="node_modules/fxos-icons/fxos-icons.css"></link>
<script src="node_modules/fxos-component/fxos-component.js"></script>
<script src="node_modules/fxos-fxos-checkbox/fxos-checkbox.js"></script>
<fxos-checkbox></fxos-checkbox>
Checked
<fxos-checkbox checked></fxos-checkbox>
Disabled
<fxos-checkbox disabled></fxos-checkbox>
git clone https://github.com/fxos-components/fxos-checkbox.git
cd fxos-checkbox
npm install
(NPM3)npm start
- Accessibility (@yzen)
- Test Coverage
- Performance
- Visual/UX
- RTL (@fabi1cazenave)
- Ensure Firefox Nightly is installed on your machine.
- To run unit tests you need npm >= 3 installed.
$ npm install
$ npm run test-unit
If you would like tests to run on file change use:
$ npm run test-unit-dev
If your would like run integration tests, use:
$ export FIREFOX_NIGHTLY_BIN=/absolute/path/to/nightly/firefox-bin
$ npm run test-integration
Run lint check with command:
$ npm run test-lint