Socket
Socket
Sign inDemoInstall

@heroku/ember-malibu-icon

Package Overview
Dependencies
358
Maintainers
286
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.3 to 1.4.0-beta.1

addon/-private/utils.js

8

app.json

@@ -18,2 +18,7 @@ {

"test": {
"formation": {
"test": {
"quantity": 9
}
},
"env": {

@@ -23,2 +28,5 @@ "EMBER_ENV": "test",

},
"scripts": {
"test": "yarn test:ci"
},
"buildpacks": [

@@ -25,0 +33,0 @@ { "url": "https://github.com/heroku/heroku-buildpack-google-chrome" },

57

package.json
{
"name": "@heroku/ember-malibu-icon",
"version": "1.3.3",
"version": "1.4.0-beta.1",
"description": "Ember Malibu Icons",

@@ -15,41 +15,52 @@ "keywords": [

"scripts": {
"build": "ember build",
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*",
"lint:hbs": "ember-template-lint .",
"lint:js": "eslint .",
"start": "ember serve",
"test": "ember test",
"test:all": "ember try:each"
"test": "npm-run-all lint:* test:*",
"test:ci": "npm-run-all lint:* && ./bin/test-ci",
"test:ember": "ember test",
"test:ember-compatibility": "ember try:each"
},
"dependencies": {
"ember-cli-babel": "^7.7.3"
"@babel/core": "^7.0.0",
"ember-cli-babel": "^7.20.5",
"ember-cli-htmlbars": "^5.1.2"
},
"devDependencies": {
"@ember/optional-features": "^0.7.0",
"@ember/jquery": "^1.1.0",
"@ember/optional-features": "^1.3.0",
"@glimmer/component": "^1.0.0",
"@glimmer/tracking": "^1.0.0",
"babel-eslint": "^10.1.0",
"broccoli-asset-rev": "^3.0.0",
"ember-cli": "~3.10.1",
"ember-cli": "~3.19.0",
"ember-cli-chai": "^0.4.3",
"ember-cli-dependency-checker": "^3.1.0",
"ember-cli-eslint": "^5.1.0",
"ember-cli-htmlbars": "^3.0.1",
"ember-cli-htmlbars-inline-precompile": "^2.1.0",
"ember-cli-inject-live-reload": "^1.8.2",
"ember-cli-mocha": "^0.15.0",
"ember-cli-dependency-checker": "^3.2.0",
"ember-cli-inject-live-reload": "^2.0.2",
"ember-cli-sass": "^10.0.0",
"ember-cli-template-lint": "^1.0.0-beta.1",
"ember-cli-uglify": "^2.1.0",
"ember-load-initializers": "^2.0.0",
"ember-cli-uglify": "^3.0.0",
"ember-compatibility-helpers": "^1.2.1",
"ember-load-initializers": "^2.1.1",
"ember-maybe-import-regenerator": "^0.1.6",
"ember-resolver": "^5.0.1",
"ember-source": "~3.10.0",
"ember-source-channel-url": "^1.1.0",
"ember-mocha": "^0.16.2",
"ember-resolver": "^8.0.0",
"ember-source": "~3.19.0",
"ember-source-channel-url": "^2.0.1",
"ember-template-lint": "^2.8.0",
"ember-test-selectors": "^0.3.8",
"ember-try": "^1.0.0",
"eslint-plugin-ember": "^6.2.0",
"eslint-plugin-node": "^9.0.1",
"ember-try": "^1.4.0",
"eslint": "^7.1.0",
"eslint-plugin-ember": "^8.6.0",
"eslint-plugin-node": "^11.1.0",
"loader.js": "^4.7.0",
"npm-run-all": "^4.1.5",
"sass": "^1.17.0"
},
"engines": {
"node": "8.* || >= 10.*"
"node": "10.* || >= 12"
},
"ember": {
"edition": "octane"
},
"ember-addon": {

@@ -56,0 +67,0 @@ "configPath": "tests/dummy/config"

@@ -1,4 +0,4 @@

# Ember Malibu 🌴 Icon
# Ember Malibu Icon
This Ember addon injects the [Malibu](https://hk-malibu.herokuapp.com/) svg sprite into your Ember application and provides a helper to insert icons into your templates. You can explore how this helper works in this addon's [demo app](https://ember-malibu-icon.herokuapp.com/).
This Ember addon injects the [Malibu](https://hk-malibu.herokuapp.com/) svg sprite into your Ember application and provides a helper to insert icons into your templates. You can explore how this helper works in this addon's [demo app and documentation](https://ember-malibu-icon.herokuapp.com/).

@@ -24,7 +24,39 @@ _Note that it will be helpful if you also use [Purple 3](https://purple3.herokuapp.com/) for styling_

### From a Handlebars (.hbs) file
```hanblebars
{{malibu-icon size='28' iconClass='gradient-dark-gray' name='app-28' title="Optional Title"}}
#### Accessibility
**Accessibility** When rendering `MalibuIcon`, you must pass declare the icon as either:
* **informational**: Pass a non-empty string to `@title` argument. This will read the text to the screenreader instead of being announced as "Image".
* **presentational**: Pass `role="presentation"` to the component. This will hide the icon from assistive technology. This should only be used for icons that don't convey additional meaning and are being used for aesthtic/design reasons.
#### Informational Usage Example
Use this when when you want text to be announced to the screenreader. This is most common when you have icons that are used for buttons or links but lack text rendered next to the icon to describe it.
```handlebars
<MalibuIcon @title="Add Buildpack {{buildpackName}}" size='28' iconClass='gradient-dark-gray' name='app-28' />
```
### From a javascript file
For example:
![Image showing a list of domains. Each row has a pencil icon which is rendered by Malibu. There is no matching text which is an example of a use case for passing the `@title` argument.](/docs/images/informational.png)
Given this screenshot, note the pencil icon. There is no text next to it to describe its intended purpose to the screenreader (in this case, "Edit"). `@title="Edit {{domain}}` would be a require improvement in this scenario.
#### Presentational Usage
Use this when the icon does not convey additional meaning. There should be visual text accompanying the icon. **Never use this when only the icon is rendered**.
For example:
![Image showing the text "GitHub" next to an SVG icon of the GitHub logo.](/docs/images/presentational.png)
In this example, the GitHub logo is "presentational" because it does not convey additional meaning already presented to the user via the "GitHub" text next to it.
```handlebars
<MalibuIcon size='28' iconClass='gradient-dark-gray' name='app-28' role="presentation"/>
```
### From a javascript file (not recommended/deprecated)
```js

@@ -31,0 +63,0 @@ import { malibuIcon } from '@heroku/ember-malibu-icon/helpers/malibu-icon';

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc