Skip to content

Commit

Permalink
Rename flipped param to is_flipped
Browse files Browse the repository at this point in the history
  • Loading branch information
jmuzina committed Sep 10, 2024
1 parent 6c0faeb commit 859b960
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions templates/_macros/vf_rich-vertical-list.jinja
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Params
# title_text (string) (required): Title of the rich vertical list
# list_item_tick_style (string) (optional): Type of list item tick styling. Options are "bullet", "tick", "number".
# flipped (boolean) (optional): Whether the list items are flipped so image is on the left and the text is on the right. Defaults to false.
# is_flipped (boolean) (optional): Whether the list items are flipped so image is on the left and the text is on the right. Defaults to false.
# Slots
# description: Paragraph-style description content
# logo_section Logo section block
Expand All @@ -10,7 +10,7 @@
{% macro vf_rich_vertical_list(
title_text,
list_item_tick_style="",
flipped=false
is_flipped=false
) -%}
{% set description_content = caller('description') %}
{% set has_description = description_content|trim|length > 0 %}
Expand Down Expand Up @@ -104,7 +104,7 @@

<hr>
<div class="row--50-50-on-large">
{% if not flipped -%}
{% if not is_flipped -%}
<div class="col">
{{- _text_column_contents(list_items) -}}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% call(slot) vf_rich_vertical_list(
title_text='H2 - this can take up to two lines, but best to stick to one line.',
list_item_tick_style="bullet",
flipped=true
is_flipped=true
) -%}
{%- if slot == 'description' -%}
<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% block content %}
{% call(slot) vf_rich_vertical_list(
title_text='H2 - this can take up to two lines, but best to stick to one line.',
flipped=true
is_flipped=true
) -%}
{%- if slot == 'description' -%}
<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% call(slot) vf_rich_vertical_list(
title_text='H2 - this can take up to two lines, but best to stick to one line.',
list_item_tick_style="number",
flipped=true
is_flipped=true
) -%}
{%- if slot == 'description' -%}
<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% call(slot) vf_rich_vertical_list(
title_text='H2 - this can take up to two lines, but best to stick to one line.',
list_item_tick_style="tick",
flipped=true
is_flipped=true
) -%}
{%- if slot == 'description' -%}
<p>
Expand Down

0 comments on commit 859b960

Please sign in to comment.