Skip to content

Commit

Permalink
Merge pull request #463 from Groww-OSS/develop
Browse files Browse the repository at this point in the history
[Icon Store] [SVG duplicate id issue fix]
  • Loading branch information
prashant-adhikari-groww authored Aug 9, 2024
2 parents dadbe7a + e85bac7 commit 1eb664b
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 28 deletions.
13 changes: 10 additions & 3 deletions packages/icon-store/.svgrrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,16 @@ module.exports = {
params: {
overrides: {
removeViewBox: false,
},
},
},
cleanupIds: {
// cleanUpIds minification seems to sometimes generate duplicate IDs.
// We disabled this so it now only uses the id that was in the SVG to begin with.
minify: false,
// Don't remove unused IDs, as sometimes they are applied later on via CSS.
remove: false
},
}
}
}
],
},
index: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/icon-store/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@groww-tech/icon-store",
"version": "1.4.6",
"version": "1.4.7",
"description": "Icon Library customized for use in Groww",
"files": [
"mi",
Expand Down
8 changes: 4 additions & 4 deletions packages/icon-store/svgs/custom/bulb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions packages/icon-store/svgs/custom/cash_stack_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions packages/icon-store/svgs/custom/cash_stack_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions packages/icon-store/svgs/custom/digilocker.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 1eb664b

Please sign in to comment.