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

Skip to content
Snippets Groups Projects
Commit a4c1ac78 authored by escuriola's avatar escuriola
Browse files

OEL-1618: Add BCL headings instead custom.

parent 511faa67
No related branches found
No related tags found
1 merge request!144OEL-1618: Upgrade BCL to 0.23.0.
......@@ -10,14 +10,6 @@
label_display == 'inline' ? 'd-flex',
]
%}
{%
set title_classes = [
'field__label',
'fw-bold',
label_display == 'visually_hidden' ? 'visually-hidden',
]
%}
{% if label_hidden %}
{% if multiple %}
<div{{ attributes.addClass(classes) }}>
......@@ -32,9 +24,20 @@
{% endif %}
{% else %}
<div{{ attributes.addClass(classes) }}>
<h3{{ title_attributes.addClass(title_classes) }}>
{{ label }}{% if label_display == 'inline' %}<span class="me-1">:</span>{% endif %}
</h3>
{%- set _label -%}
{{- label -}}
{%- if label_display == 'inline' -%}
<span class="me-1">:</span>
{%- endif -%}
{%- endset -%}
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
title: _label,
title_tag: 'h3',
attributes: create_attribute().addClass([
'field__label',
label_display == 'visually_hidden' ? 'visually-hidden',
])
} only %}
{% if multiple %}
<div class="field__items">
{% endif %}
......
......@@ -10,14 +10,6 @@
label_display == 'inline' ? 'd-flex',
]
%}
{%
set title_classes = [
'field__label',
'fw-bold',
label_display == 'visually_hidden' ? 'visually-hidden',
]
%}
{% if label_hidden %}
{% if multiple %}
<div{{ attributes.addClass(classes) }}>
......@@ -32,9 +24,20 @@
{% endif %}
{% else %}
<div{{ attributes.addClass(classes) }}>
<h3{{ title_attributes.addClass(title_classes) }}>
{{ label }}{% if label_display == 'inline' %}<span class="me-1">:</span>{% endif %}
</h3>
{%- set _label -%}
{{- label -}}
{%- if label_display == 'inline' -%}
<span class="me-1">:</span>
{%- endif -%}
{%- endset -%}
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
title: _label,
title_tag: 'h3',
attributes: create_attribute().addClass([
'field__label',
label_display == 'visually_hidden' ? 'visually-hidden',
])
} only %}
{% if multiple %}
<div class="field__items">
{% endif %}
......
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