Skip to content
Snippets Groups Projects
Commit 3c4d56e5 authored by Florent Torregrosa's avatar Florent Torregrosa Committed by Florent Torregrosa
Browse files

Issue #3349067 by Grimreaper: UI Patterns library: display pattern tags

parent abe14fee
No related branches found
No related tags found
1 merge request!71Issue #3349067: UI Patterns library: display pattern tags
......@@ -11,6 +11,21 @@
<h3 class="pattern-preview__label display-3">{{ pattern.label }}</h3>
<p class="pattern-preview__description">{{ pattern.description }}</p>
{% if pattern.tags %}
<p class="pattern-preview__tags">
{% for tag in pattern.tags %}
{{ pattern('badge', {
'label': tag,
'attributes': create_attribute({
'class': [
'bg-secondary'
]
}),
}) }}
{% endfor %}
</p>
{% endif %}
{# Pattern fields descriptions. #}
{% if pattern.fields or pattern.additional.settings %}
<table class="pattern-preview__fields table">
......
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