Skip to content

Commit

Permalink
Merge pull request #14 from FDiskas/bugfix/1em-to-24
Browse files Browse the repository at this point in the history
Bugfix: replace 1em to 24
  • Loading branch information
yigithanyucedag authored Jun 27, 2021
2 parents b3f36b2 + 9603b07 commit f8ad442
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .svgrrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ module.exports = {
attributes: ['xmlns', 'className'],
},
],
// default is 1em - replace it to 24
[
"@svgr/babel-plugin-replace-jsx-attribute-value",
{
"values": [
{ "value": "1em", "newValue": 24 },
]
}
]
],
},
},
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"devDependencies": {
"@microsoft/api-extractor": "^7.16.1",
"@svgr/babel-plugin-remove-jsx-attribute": "^5.4.0",
"@svgr/babel-plugin-replace-jsx-attribute-value": "^5.0.1",
"@svgr/cli": "^5.5.0",
"@types/react": "^17.0.11",
"feather-icons": "^4.28.0",
Expand Down

0 comments on commit f8ad442

Please sign in to comment.