Skip to content

Commit

Permalink
Fix(web-twig): Use embed in DocsSection to fix falling tests with unc…
Browse files Browse the repository at this point in the history
…losed block
  • Loading branch information
crishpeen committed Oct 10, 2023
1 parent 6c8ffee commit 91c6675
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/web-twig/docs/components/DocsSection/DocsSection.twig
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@
{% endif %}
</h2>
{% if _hasStack %}
<DocsStack stackAlignment={{ _stackAlignment }}>
{{ _renderedContent }}
</DocsStack>
{%- embed '@spirit/DocsStack/DocsStack.twig' with { props: {
stackAlignment: _stackAlignment,
}, _renderedContent } only -%}
{%- block content -%}
{{- _renderedContent -}}
{%- endblock -%}
{%- endembed -%}
{% else %}
{{ _renderedContent }}
{% endif %}
Expand Down

0 comments on commit 91c6675

Please sign in to comment.