Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 7cefca1f authored by drishu's avatar drishu
Browse files

OEL-1919: Style facet links.

parent 674942f6
No related branches found
No related tags found
1 merge request!176OEL-1919: Fix broken styling for facetapi.
.facets-widget-checkbox .item-list__checkbox {
.facets-widget-checkbox .item-list__checkbox,
.facets-widget-links .item-list__links {
padding-left: 0;
list-style-type: none;
}
......@@ -13,18 +13,23 @@
{%- endif %}
{% if items or empty %}
{%- if title is not empty -%}
{% block title %}
<legend class="col-form-label"><span class="fieldset-legend">{{ title }}</span></legend>
{% endblock %}
{%- endif -%}
{%- set list_margin = facet.widget.type == 'links' ? 'mb-1' : 'mb-2' %}
{% block content %}
{%- if items -%}
<{{ list_type }}{{ attributes }}>
{%- for item in items -%}
<li{{ item.attributes.addClass('mb-2') }}>{{ item.value }}</li>
<li{{ item.attributes.addClass(list_margin) }}>{{ item.value }}</li>
{%- endfor -%}
</{{ list_type }}>
{%- else -%}
{{- empty -}}
{%- endif -%}
{% endblock %}
{%- endif %}
{% if facet.widget.type == "dropdown" %}
......
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