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

@hashicorp/ember-flight-icons

Package Overview
Dependencies
Maintainers
24
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hashicorp/ember-flight-icons

The Ember addon for the HashiCorp Flight SVG icon set

  • 0.0.2-beta
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.9K
decreased by-50.29%
Maintainers
24
Weekly downloads
 
Created
Source

ember-flight-icons

npm version

CI - Ember Flight Icons

An Ember addon for the icons from flight. Currently in development.

Goals:

  • Accessible
  • Easy to use
  • Easy to maintain
  • Sensible defaults

Compatibility

  • Ember.js v3.20 or above
  • Ember CLI v3.20 or above
  • Node.js v10 or above

Installation

Install this addon like any other Ember addon:

ember install @hashicorp/ember-flight-icons

Usage

Required usage

The name must be specified. A default icon size of 16 is provided.

<FlightIcon @name="activity" />

Optional usage

Icons are set to a viewBox square size of 16 by default.

<FlightIcon @name="activity" />

Currently, we support a viewBox square size of 16 or 24. If you need your icon to be larger than 16, pass in size.

<FlightIcon @name="activity" @size="24" />

Icons are set to display: inline-block by default. To remove this, set isInlineBlock to false:

<FlightIcon @name="archive" @isInlineBlock={{false}} />

Icons are set to fill="currentColor" by default. To change this, set the desired color:

<!-- Preferred method to ensure consistency: using a :root variable -->
<FlightIcon @name="alert-circle" @color="var(--danger-d1)" />
<FlightIcon @name="alert-circle" @color="rgb(186, 34, 38)" />
<FlightIcon @name="activity" @color="red" />

Additional CSS classes can be appended to the component. Note: a class name that tries to set a color or size for the icon will be ignored by the component.

<FlightIcon @name="meh" class="demo" />

Note

The id is automatically generated by the component, and will be unique.

Accessibility

Accessibility support for SVGs is inconsistent across browsers and assistive technology. Currently, best practice is to set the aria-hidden attribute to false on the SVG itself. This means that the <FlightIcon> component will need to be used in context. The icons themselves are for presentation purposes only and should never be used on their own.

Example:

<button aria-label="Check Activity">
  <FlightIcon @name="activity" />
</button>
<h2><FlightIcon @name="activity" />Activity Report</h2>

Contributing

See the Contributing guide for details.

License

This project is licensed under the Mozilla Public License 2.0.

Versioning

We use SemVer for versioning.

Keywords

FAQs

Package last updated on 01 Sep 2021

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