Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fxos-button

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fxos-button

## Installation

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

<fxos-button>

Installation

$ npm install fxos-button

Examples

  • Example

Usage

<fxos-button>normal button<fxos-button>

disable

Add disabled attribute to disable the button.

<fxos-button disabled>button disabled</fxos-button>

With icon

Button be used in conjunction with fxos-icons.

<fxos-button><i data-icon="back-light" aria-hidden="true"></i><span>Back</span></fxos-button>
<fxos-button><span>Forward</span><i data-icon="forward-light" aria-hidden="true"></i></fxos-button>

Remember to add aria-hidden="true" when both icon and text existed for Accessibility. So the screen reader will read the button text and ignore the icon text.

Circular

Add circular attribute to turn button into circular form.

<fxos-button circular><i data-icon="camera"></i></fxos-button>

Readiness

  • Accessibility (@yzen)
  • Test Coverage
  • Performance
  • Visual/UX
  • RTL

Developing locally

  1. git clone https://github.com/fxos-components/fxos-button.git
  2. cd fxos-button
  3. npm install (NPM3)
  4. npm start

Tests

  1. Ensure Firefox Nightly is installed on your machine.
  2. To run unit tests you need npm >= 3 installed.
  3. $ npm install
  4. $ npm run test-unit

If your 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

FAQs

Package last updated on 04 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc