diff --git a/.svglintrc.js b/.svglintrc.js
index e668266..97fe2bb 100644
--- a/.svglintrc.js
+++ b/.svglintrc.js
@@ -2,7 +2,8 @@ module.exports = {
rules: {
elm: {
"svg": 1,
- "svg > title": 1
+ "svg > title": 1,
+ "svg > desc": 1
},
attr: [{ // ensure that the SVG element has the appropriate attributes
"role": "img",
@@ -32,11 +33,13 @@ module.exports = {
"rule::whitelist": true
}, { // ensure that a g element has the appropriate attributes
"style": false,
+ "fill": false,
"id": false,
"rule::selector": "svg g"
}, { // ensure that a path element has the appropriate attributes
"style": false,
+ "fill": false,
"rule::selector": "svg path"
}]
diff --git a/.travis.yml b/.travis.yml
index e7a22e0..c8dd962 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,7 +16,7 @@ before_script:
- npm run png@2x
- npm run png@3x
- npm run copySass
- - npm run svgTest
+ - npm run svgjest
after_success:
- npx semantic-release
diff --git a/README.md b/README.md
index eb0d02c..ed9023b 100644
--- a/README.md
+++ b/README.md
@@ -28,7 +28,7 @@ Icon styles are inheriting from Auro Design Tokens. Any reference to the followi
For use in situations where CSS custom properties are not supported. In the `dist/` directory is `icons.scss`. Import this Sass file for default shape styles.
-__`orion-icons.scss` is deprecated, please reference `icons.scss`.__
+`orion-icons.scss` is deprecated, please reference `icons.scss`.
```scss
@import '@alaskaairux/orion-icons/dist/icons';
@@ -46,11 +46,11 @@ Due to dependency on Auro tokens, be sure to import the Sass variables prior to
@import "~@alaskaairux/orion-design-tokens/dist/tokens/SCSSVariables";
```
-#### DEPRECATION WARNING!
+#### DEPRECATION WARNING!
-__NOTE: This process has been deprecated!__
+__NOTE: This process has been deprecated!__
-__Due to Auro updates, sizes are uniform. There is no longer a need to have individual selectors. If you are using these selectors, simply remove the reference to `$iconMap` to discontinue use.__
+Due to Auro updates, sizes are uniform. There is no longer a need to have individual selectors. If you are using these selectors, simply remove the reference to `$iconMap` to discontinue use.
By default, no CSS classes are created when importing this file. To opt-in to the icon styles needed, add a config variable map, prior to import, that will set a flag to `true` to output the classes needed. See the following example:
@@ -268,6 +268,7 @@ See [angular-svg-icon](https://www.npmjs.com/package/angular-svg-icon) for more
Adding new icons to this repository requires a few steps.
1. Add a new icon `.svg` file to the `src/icons/` directory (see DOs and DON'Ts below)
+1. If the icons is to retain its designed color, please place the new icon in the `src/icons/fullColor` directory
1. Add **shape schema** to `./src/data/icons.json` file (see example below)
1. Submit pull request for approval
@@ -285,7 +286,9 @@ $ open icons.html
### Icon shape schema
-When adding new icons, be sure to follow this example to add the proper data to the `icons.json` file
+When adding new icons, be sure to follow this example to add the proper data to the `icons.json` file. Any attribute defined in the `"commonProperties"` object may be over-written in the individual `"icons"` object.
+
+For icons that need to retain their full color spec, be sure to add the `"path": "/icons/fullColor"` attribute to the icon object.
```javascript
{
@@ -296,15 +299,28 @@ When adding new icons, be sure to follow this example to add the proper data to
"color": "currentColor",
"PngColor": "var(--color-type-theme-light-link)",
"PngSize": 24,
- "width": "var(--size-icon-square-lg)",
- "height": "var(--size-icon-square-lg)"
+ "width": "var(--auro-size-lg)",
+ "height": "var(--auro-size-lg)",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "xmlns_xlink": "http://www.w3.org/1999/xlink",
+ "viewBox": "0 0 24 24",
+ "path": "/icons"
},
"icons": [
{
- "title": "Arrow Up",
- "desc": "Up pointer",
- "style": "ico__toggleArrow",
- "category": "interface"
+ "title": "Error",
+ "name": "error",
+ "desc": "Error alert icon",
+ "style": "ico_squareLarge",
+ "category": "alert"
+ },
+ {
+ "title": "CC Alaska",
+ "name": "cc-alaska",
+ "desc": "Alaska Credit Card",
+ "style": "ico_squareLarge",
+ "category": "payment",
+ "path": "/icons/fullColor"
}
]
}
@@ -321,18 +337,10 @@ All new icon pull requests MUST comply with the following specifications. Any pu
#### DO
-Reduce the SVG HTML to only the following attributes;
-
-1. Set `
` specifically to `iconTitle`
-1. Set `` specifically to `iconDesc`
-1. Set ``
-1. Keep all necessary `