Skip to content
Snippets Groups Projects
Commit eb53712d authored by Michael Fanini's avatar Michael Fanini
Browse files

Issue #3503124 by g4mbini, pdureau: [2.0.x] Override UI Patterns library templates

parent 9e2997ca
No related branches found
No related tags found
1 merge request!3Issue #3503124 by g4mbini, pdureau: [2.0.x] Override UI Patterns library templates
<div class="ui_patterns_component__stories">
{% for story_id, story in component.stories %}
{{ _self.render_story(component.id, story_id, story, component.variants) }}
{% endfor %}
</div>
{% macro render_story(component_id, story_id, story, variants) %}
<div class="ui_patterns_story">
{% if variants and not story.props.variant %}
{% for variant_id, variant in variants %}
{{ component_story(component_id, story_id, {}, {variant: variant_id}, true) }}
{% endfor %}
{% else %}
{{ component_story(component_id, story_id, {}, {}, true) }}
{% endif %}
</div>
{% endmacro %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment