Skip to content

Commit

Permalink
Merge pull request #4 from SphereSoftware/fixed-stroke-color
Browse files Browse the repository at this point in the history
fixed stroke color
  • Loading branch information
AleksandrZhukov authored Dec 6, 2016
2 parents 4913c69 + 4416e67 commit dadebb5
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
4 changes: 3 additions & 1 deletion generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ export default (props) =>

function prepareSVGForReact(svg) {
const svgContent = svg.match(/<svg[^>]+>([\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) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/rebel-lib/CollapseScreenIcon.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/rebel-lib/FullScreenIcon.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/rebel-lib/NoEyeIcon.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dadebb5

Please sign in to comment.