Installation
$ 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>
Examples
Usage
<fxos-checkbox></fxos-checkbox>
Checked
<fxos-checkbox checked></fxos-checkbox>
Disabled
<fxos-checkbox disabled></fxos-checkbox>
Developing locally
git clone https://github.com/fxos-components/fxos-checkbox.git
cd fxos-checkbox
npm install
(NPM3)npm start
Readiness
- Accessibility (@yzen)
- Test Coverage
- Performance
- Visual/UX
- RTL (@fabi1cazenave)
Tests
- 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
Lint check
Run lint check with command:
$ npm run test-lint