Skip to content

Commit

Permalink
perf: add support for CSS parts
Browse files Browse the repository at this point in the history
This commit adds support for CSS Parts on the SVG allowing for targetd
styling of the SVG within the element as needed.

This update was added to the SVGO script versus the DOM building script
due to SVGO's intention to strip away non-uniform attributes and no part
of their API to support retaining this attribute.

Changes to be committed:
modified:   scripts/generate.js
  • Loading branch information
blackfalcon committed Apr 19, 2024
1 parent 547a8e6 commit 5ce5263
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,16 @@ function runGenerator(data) {
},
},
},
{
name: 'addAttributesToSVGElement',
params: {
attributes: [
{
part: 'svg'
}
]
}
},
],
}).data;

Expand Down

0 comments on commit 5ce5263

Please sign in to comment.