From de57f0f31c317c5b8d47b02182f3ea4e3d512f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kater=CC=8Cina=20Dlouha=CC=81?= Date: Thu, 19 Oct 2023 11:55:32 +0200 Subject: [PATCH] Fix(web-twig): Fix pass custom classnames to the `Spinner` component --- .../web-twig/src/Resources/components/Spinner/Spinner.twig | 4 ++-- .../__tests__/__snapshots__/spinnerDefault.twig.snap.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 @@ -