Skip to content

Commit

Permalink
EWPP-3771: Fix link block style.
Browse files Browse the repository at this point in the history
  • Loading branch information
imanoleguskiza committed Jan 26, 2024
1 parent 73d49fb commit 231d0b0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
{% set _links = links|default([]) %}
{% set _css_class = 'ecl-link-block' %}
{% set _extra_attributes = '' %}
{% set _color = ecl_component_library == 'ec' ? 'neutral-20' : 'primary-5' %} %}

{# Internal logic - Process properties #}

Expand All @@ -37,15 +38,15 @@
{% endfor %}
{% endif %}

<div class="{{ _css_class }} ecl-u-bg-grey-5 ecl-u-ph-m"{{ _extra_attributes|raw }}>
<div class="{{ _css_class }} ecl-u-bg-{{ _color }} ecl-u-ph-m"{{ _extra_attributes|raw }}>
{% if _title is not empty %}
<div class="ecl-link-block__title ecl-row ecl-u-pl-m ecl-u-pr-m">
<h5 class="ecl-u-type-heading-5 ecl-u-mt-xs ecl-u-mb-none">{{ _title }}</h5>
</div>
{% endif %}
{% if _links is not empty and _links is iterable %}
<div class="ecl-row ecl-u-pl-m ecl-u-pr-m">
<ul class="ecl-link-block__list ecl-unordered-list--no-bullet ecl-u-ma-none">
<ul class="ecl-link-block__list ecl-unordered-list--no-marker ecl-u-ma-none">
{% for _link in _links %}
<li class="ecl-link-block__item ecl-u-mt-xs ecl-u-mb-xs">
{% include '@ecl-twig/link' with {
Expand Down

0 comments on commit 231d0b0

Please sign in to comment.