Saga-icons: Forward SVG attributes (#87138)

This commit is contained in:
Alex Khomenko
2024-04-30 15:58:25 +01:00
committed by GitHub
parent 1ddbcc3f61
commit 86aceb7a10
2 changed files with 1 additions and 2 deletions
-2
View File
@@ -33,8 +33,6 @@ export const IconBase = ({ title, size = 'md', color = 'currentColor', ...props
return (
<svg
{...props}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
height={svgSize}
width={svgSize}
style={{
@@ -4,6 +4,7 @@
const modifyJSX = (jsx) => {
jsx.openingElement.name.name = 'IconBase';
jsx.openingElement.attributes = [
...jsx.openingElement.attributes,
{
type: 'JSXSpreadAttribute',
argument: {