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

Skip to content
Snippets Groups Projects
Commit 15910e0e authored by drishu's avatar drishu
Browse files

OEL-1919: Inject classes per facet type.

parent 26499da2
No related branches found
No related tags found
1 merge request!176OEL-1919: Fix broken styling for facetapi.
......@@ -7,7 +7,13 @@
<div class="facets-widget- {{- facet.widget.type -}} ">
{% if facet.widget.type %}
{%- set attributes = attributes.addClass('item-list__' ~ facet.widget.type) %}
{% endif %}
{%- endif %}
{% if facet.widget.type == 'dropdown' -%}
{%- set attributes = attributes.addClass('form-select') %}
{%- endif %}
{% if facet.widget.type == 'checkbox' -%}
{%- set attributes = attributes.addClass('oel-facets-checkbox-list') %}
{%- endif %}
{% if items or empty %}
{%- if title is not empty -%}
<legend class="col-form-label"><span class="fieldset-legend">{{ title }}</span></legend>
......
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