diff --git a/packages/web-twig/src/Resources/components/Spinner/Spinner.twig b/packages/web-twig/src/Resources/components/Spinner/Spinner.twig index 3a494de362..f3cd0edda6 100644 --- a/packages/web-twig/src/Resources/components/Spinner/Spinner.twig +++ b/packages/web-twig/src/Resources/components/Spinner/Spinner.twig @@ -11,8 +11,8 @@ {%- set _classNames = [ _rootClassName, _rootAnimationClassName, _styleProps.className ] -%} {%- set _mainPropsWithoutColor = props | filter((value, prop) => prop is not same as('color')) -%} -{% embed "@spirit/icon.twig" with { props: { +{% embed "@spirit/icon.twig" with { props: _mainPropsWithoutColor | merge({ name: 'spinner', UNSAFE_className: _classNames | join(' ') | trim, UNSAFE_style: _styleProps.style, -} | merge(_mainPropsWithoutColor) } %}{% endembed %} +}) } %}{% endembed %} diff --git a/packages/web-twig/src/Resources/components/Spinner/__tests__/__snapshots__/spinnerDefault.twig.snap.html b/packages/web-twig/src/Resources/components/Spinner/__tests__/__snapshots__/spinnerDefault.twig.snap.html index 9350f29b25..f53a41e2e9 100644 --- a/packages/web-twig/src/Resources/components/Spinner/__tests__/__snapshots__/spinnerDefault.twig.snap.html +++ b/packages/web-twig/src/Resources/components/Spinner/__tests__/__snapshots__/spinnerDefault.twig.snap.html @@ -17,7 +17,7 @@ -