diff --git a/packages/web-twig/src/Resources/components/Accordion/__tests__/__snapshots__/accordionDefault.twig.snap.html b/packages/web-twig/src/Resources/components/Accordion/__tests__/__snapshots__/accordionDefault.twig.snap.html index 7bb91595d1..bf2504dcde 100644 --- a/packages/web-twig/src/Resources/components/Accordion/__tests__/__snapshots__/accordionDefault.twig.snap.html +++ b/packages/web-twig/src/Resources/components/Accordion/__tests__/__snapshots__/accordionDefault.twig.snap.html @@ -8,7 +8,7 @@

- my HTML content my HTML content

@@ -25,7 +25,7 @@

diff --git a/packages/web-twig/src/Resources/components/Accordion/__tests__/__snapshots__/accordionStayOpen.twig.snap.html b/packages/web-twig/src/Resources/components/Accordion/__tests__/__snapshots__/accordionStayOpen.twig.snap.html index 56c76ff9ac..4ec5f31d06 100644 --- a/packages/web-twig/src/Resources/components/Accordion/__tests__/__snapshots__/accordionStayOpen.twig.snap.html +++ b/packages/web-twig/src/Resources/components/Accordion/__tests__/__snapshots__/accordionStayOpen.twig.snap.html @@ -8,7 +8,7 @@

-

@@ -25,7 +25,7 @@

diff --git a/packages/web-twig/src/Resources/components/Alert/__tests__/__snapshots__/alertDefault.twig.snap.html b/packages/web-twig/src/Resources/components/Alert/__tests__/__snapshots__/alertDefault.twig.snap.html index 2655711cf2..5133910d08 100644 --- a/packages/web-twig/src/Resources/components/Alert/__tests__/__snapshots__/alertDefault.twig.snap.html +++ b/packages/web-twig/src/Resources/components/Alert/__tests__/__snapshots__/alertDefault.twig.snap.html @@ -6,7 +6,7 @@
-
@@ -15,7 +15,7 @@
-
@@ -24,7 +24,7 @@
-
@@ -33,7 +33,7 @@
-
@@ -43,7 +43,7 @@
Message @@ -51,7 +51,7 @@
-
@@ -61,7 +61,7 @@ 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 7456a723f0..e8694f7f95 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 @@ -5,19 +5,19 @@ -
-
@@ -20,9 +20,9 @@
diff --git a/packages/web-twig/src/Resources/components/Tooltip/__tests__/__snapshots__/tooltipPopover.twig.snap.html b/packages/web-twig/src/Resources/components/Tooltip/__tests__/__snapshots__/tooltipPopover.twig.snap.html index 55fe6c9451..78b14a381c 100644 --- a/packages/web-twig/src/Resources/components/Tooltip/__tests__/__snapshots__/tooltipPopover.twig.snap.html +++ b/packages/web-twig/src/Resources/components/Tooltip/__tests__/__snapshots__/tooltipPopover.twig.snap.html @@ -11,7 +11,7 @@ diff --git a/packages/web-twig/src/Resources/components/UNSTABLE_ActionLayout/__tests__/__snapshots__/UNSTABLE_EmptyState.twig.snap.html b/packages/web-twig/src/Resources/components/UNSTABLE_ActionLayout/__tests__/__snapshots__/UNSTABLE_EmptyState.twig.snap.html index 44f2945203..28d9b9fab4 100644 --- a/packages/web-twig/src/Resources/components/UNSTABLE_ActionLayout/__tests__/__snapshots__/UNSTABLE_EmptyState.twig.snap.html +++ b/packages/web-twig/src/Resources/components/UNSTABLE_ActionLayout/__tests__/__snapshots__/UNSTABLE_EmptyState.twig.snap.html @@ -8,7 +8,7 @@
-
diff --git a/packages/web-twig/src/Resources/components/UNSTABLE_EmptyState/__tests__/__snapshots__/UNSTABLE_EmptyState.twig.snap.html b/packages/web-twig/src/Resources/components/UNSTABLE_EmptyState/__tests__/__snapshots__/UNSTABLE_EmptyState.twig.snap.html index 8f6f226c9b..982c8778c7 100644 --- a/packages/web-twig/src/Resources/components/UNSTABLE_EmptyState/__tests__/__snapshots__/UNSTABLE_EmptyState.twig.snap.html +++ b/packages/web-twig/src/Resources/components/UNSTABLE_EmptyState/__tests__/__snapshots__/UNSTABLE_EmptyState.twig.snap.html @@ -8,7 +8,7 @@
-
diff --git a/packages/web-twig/src/Twig/SvgExtension.php b/packages/web-twig/src/Twig/SvgExtension.php index 31b032c899..041725185d 100644 --- a/packages/web-twig/src/Twig/SvgExtension.php +++ b/packages/web-twig/src/Twig/SvgExtension.php @@ -26,6 +26,7 @@ class SvgExtension extends AbstractExtension private const ATTR_WIDTH = 'width'; private const SIMPLE_XML_ROOT_DECLARATION = "\n"; private const SVG_NAMESPACE = 'http://www.w3.org/2000/svg'; + private const SVG_ID_PREFIX = 'svg_'; /** * @var array @@ -84,7 +85,7 @@ public function getInlineSvg(Environment $environment, string $path, array $para } } - $iconId = md5($path . serialize($params)); + $iconId = self::SVG_ID_PREFIX . md5($path . serialize($params)); if (array_key_exists($iconId, $this->cacheReusableIconContent)) { return $this->cacheReusableIconContent[$iconId]; diff --git a/packages/web-twig/tests/__snapshots__/ComponentsSnapshotTest__test with data set spinnerIconProps.twig__1.html b/packages/web-twig/tests/__snapshots__/ComponentsSnapshotTest__test with data set spinnerIconProps.twig__1.html index beb07c9f84..adfb182a26 100644 --- a/packages/web-twig/tests/__snapshots__/ComponentsSnapshotTest__test with data set spinnerIconProps.twig__1.html +++ b/packages/web-twig/tests/__snapshots__/ComponentsSnapshotTest__test with data set spinnerIconProps.twig__1.html @@ -5,19 +5,19 @@ - + -