Skip to content

Commit

Permalink
fix(icons): remove fill and stroke attributes on icon output files (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverschuerch authored Dec 4, 2024
1 parent 7320b67 commit 86e2ef1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/orange-maps-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-icons': patch
---

Removed `fill` and `stroke` attributes on the icons output files.
2 changes: 1 addition & 1 deletion packages/icons/svgo.config.ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default {
name: 'removeAttrs',
params: {
elemSeparator: '::',
attrs: ['style', 'data-.*', 'svg::(width|height|xml:space)'],
attrs: ['style', 'fill', 'stroke', 'data-.*', 'svg::(width|height|xml:space)'],
},
},
],
Expand Down

0 comments on commit 86e2ef1

Please sign in to comment.