diff --git a/CHANGELOG.md b/CHANGELOG.md index b8c8a73..0070976 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,3 +21,7 @@ We follow the [Semantic Versioning 2.0.0](http://semver.org/) format. - remove *.ai files from repo - minor changes of repo's structure - refactoring + +## 2.0.1 - 2016-12-1 + +- fixed stroke color (changed it to current color) diff --git a/generator.js b/generator.js index f02f927..c7b40e6 100644 --- a/generator.js +++ b/generator.js @@ -55,7 +55,9 @@ export default (props) => function prepareSVGForReact(svg) { const svgContent = svg.match(/]+>([\W\w]*)<\/svg>/)[1]; - return svgContent.replace(/[\w]+[-:][\w]+(?=[=])/g, atr => camelCase(atr)); + return svgContent + .replace(/[\w]+[-:][\w]+(?=[=])/g, atr => camelCase(atr)) + .replace(/stroke="([^"]+)"/g, 'stroke="currentColor"'); } function getIconName(name) { diff --git a/package.json b/package.json index 8692b4a..91f969f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rebel-icons", - "version": "2.0.0", + "version": "2.0.2", "description": "Include an awesome rebel icons in your React projects with `react-icons`. You can use ES6 imports that allows you to include only icons that your project is using. Highly customizable set of icons.", "main": "lib/index", "devDependencies": { diff --git a/src/rebel-lib/CollapseScreenIcon.js b/src/rebel-lib/CollapseScreenIcon.js index dde7b42..f0f0989 100644 --- a/src/rebel-lib/CollapseScreenIcon.js +++ b/src/rebel-lib/CollapseScreenIcon.js @@ -3,5 +3,5 @@ import IconBase from '../IconBase'; export default (props) => - + diff --git a/src/rebel-lib/FullScreenIcon.js b/src/rebel-lib/FullScreenIcon.js index 158aefc..95ddb36 100644 --- a/src/rebel-lib/FullScreenIcon.js +++ b/src/rebel-lib/FullScreenIcon.js @@ -3,5 +3,5 @@ import IconBase from '../IconBase'; export default (props) => - + diff --git a/src/rebel-lib/NoEyeIcon.js b/src/rebel-lib/NoEyeIcon.js index cc42708..d738e4b 100644 --- a/src/rebel-lib/NoEyeIcon.js +++ b/src/rebel-lib/NoEyeIcon.js @@ -3,5 +3,5 @@ import IconBase from '../IconBase'; export default (props) => - +