Skip to content

Commit

Permalink
feat(icons): custom colors are now supported, emergency icons added
Browse files Browse the repository at this point in the history
  • Loading branch information
Utzel-Butzel committed Nov 21, 2019
1 parent 98eb6c3 commit f409c35
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .storybook/wfp-storybook/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ export const withNotes = makeDecorator({
wrapper: (getStory, context, ttt) => {
const contextName = context.kind.includes('Templates')
? context.name
: context.kind.replace('Documentation|', '').replace('Components|', '');
: context.kind
.replace('Documentation|', '')
.replace('Components|', '')
.replace('Navigation|', '');

const reqReadme = require.context('../../src', true, /\.md$/);

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
}
},
"peerDependencies": {
"@wfp/icons": "^0.0.81",
"@wfp/icons": "^0.0.82",
"react": "^16.8.5",
"react-dom": "^16.8.5"
},
Expand Down Expand Up @@ -160,7 +160,7 @@
"@storybook/react": "^5.2.5",
"@storybook/theming": "^5.2.5",
"@tippy.js/react": "^2.2.3",
"@wfp/icons": "^0.0.81",
"@wfp/icons": "^0.0.82",
"add": "^2.0.6",
"all-contributors-cli": "^5.2.5",
"autoprefixer": "^8.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Icon/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function svgShapes(svgData) {
});
} else if (svgProp === 'paths') {
return data.map((path, index) => (
<path d={path.d} key={`key${index}`} />
<path fill={path.fill} d={path.d} key={`key${index}`} />
));
}

Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2591,6 +2591,13 @@
resolved "https://registry.yarnpkg.com/@wfp/icons/-/icons-0.0.81.tgz#86996eab5884edc8942f838c1edeea59abacbd69"
integrity sha512-ydBzRSEOErpMlBBz5TH1UijlJiEeU/437RvNrLxYKUmgQwTgxZb0eTApKdDAS9ytyP6D35VnzaWe7NtTIpzziw==

"@wfp/icons@^0.0.82":
version "0.0.82"
resolved "https://registry.yarnpkg.com/@wfp/icons/-/icons-0.0.82.tgz#176a684639a1e199e598fa746e2dfcba9df1226b"
integrity sha512-HPJHUMHA4Fy14NvywaLBLBUEkB82hQ+OM1Ttguh2BwIRZ4eDf0t4gA5he0p/FeUg5dj2WPm79rd3YZ1/iZ/SVQ==
dependencies:
natives "^1.1.6"

"@xtuc/ieee754@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@xtuc/ieee754/-/ieee754-1.2.0.tgz#eef014a3145ae477a1cbc00cd1e552336dceb790"
Expand Down Expand Up @@ -11322,6 +11329,11 @@ nanomatch@^1.2.9:
snapdragon "^0.8.1"
to-regex "^3.0.1"

natives@^1.1.6:
version "1.1.6"
resolved "https://registry.yarnpkg.com/natives/-/natives-1.1.6.tgz#a603b4a498ab77173612b9ea1acdec4d980f00bb"
integrity sha512-6+TDFewD4yxY14ptjKaS63GVdtKiES1pTPyxn9Jb0rBqPMZ7VcCiooEhPNsr+mqHtMGxa/5c/HhcC4uPEUw/nA==

natural-compare@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
Expand Down

0 comments on commit f409c35

Please sign in to comment.