diff --git a/scripts/utilities/create-component.ts b/scripts/utilities/create-component.ts index 9f6120ec..3b514129 100644 --- a/scripts/utilities/create-component.ts +++ b/scripts/utilities/create-component.ts @@ -41,6 +41,12 @@ export default function createComponentFromSvg(pathToSvg: string, svgFileName: s if (path.attr('stroke')) { path?.attr('stroke', 'currentColor') } + // Add animation for ProgressIcon + if (name === 'progress-icon') { + // Add transform origin + path.attr('transform-origin', 'center') + $cheerio('svg').append('') + } } // Get the innerHTML of the element, stripping any leading or trailing newlines diff --git a/src/tests/__snapshots__/ProgressIcon.html b/src/tests/__snapshots__/ProgressIcon.html index 699797ce..863618cb 100644 --- a/src/tests/__snapshots__/ProgressIcon.html +++ b/src/tests/__snapshots__/ProgressIcon.html @@ -1 +1 @@ -My custom title \ No newline at end of file +My custom title \ No newline at end of file diff --git a/svg/solid/progress.svg b/svg/solid/progress.svg index dd5cbf69..c1946fa3 100644 --- a/svg/solid/progress.svg +++ b/svg/solid/progress.svg @@ -1,3 +1,3 @@ - +