Skip to content

Commit

Permalink
fixup! Refactor(web-twig): Use class name prefix for utilities and he…
Browse files Browse the repository at this point in the history
…lpers
  • Loading branch information
literat committed Sep 13, 2023
1 parent 48307e6 commit f837d5d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

{# Class names #}
{%- set _rootClassName = _spiritClassPrefix ~ 'Breadcrumbs' -%}
{%- set _displayNoneClassName = _spiritClassPrefix ~ 'd-none' -%}
{%- set _displayTabletNoneClassName = _spiritClassPrefix ~ 'd-tablet-none' -%}
{%- set _displayTabletFlexClassName = _spiritClassPrefix ~ 'd-tablet-flex' -%}

{# Miscellaneous #}
{%- set _styleProps = useStyleProps(props) -%}
Expand All @@ -22,12 +25,12 @@
<ol>
{% for item in _items %}
{% if loop.index is same as(_items|length - 1) and _goBackTitle is not same as('') %}
<li class="d-tablet-none">
<li class="{{ _displayTabletNoneClassName }}">
<Icon name="chevron-left" />
<Link href="{{ item.url }}" color="primary" isUnderlined>{{ _goBackTitle }}</Link>
</li>
{% endif %}
<li class="d-none d-tablet-flex">
<li class="{{ [_displayNoneClassName, _displayTabletFlexClassName] | join(' ') }}">
{% if loop.index0 is not same as(0) %}
<Icon name="chevron-right" />
{% endif %}
Expand Down

0 comments on commit f837d5d

Please sign in to comment.