Skip to content

Commit a609c7a

Browse files
All images within tiered lists to have p-image-container--cinematic aspect ratio
1 parent f961ce8 commit a609c7a

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

templates/_macros/vf_tiered-list.jinja

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,17 @@
6262
{%- if image -%}
6363
<div class="row">
6464
{%- if is_image_full_width -%}
65-
<div class="p-section--shallow">
66-
{{ image }}
67-
</div>
65+
<div class="p-section--shallow">
66+
<div class="p-image-container--cinematic">
67+
{{ image }}
68+
</div>
69+
</div>
6870
{%- else -%}
6971
<div class="col-start-large-7">
7072
<div class="p-section--shallow">
71-
{{ image }}
73+
<div class="p-image-container--cinematic">
74+
{{ image }}
75+
</div>
7276
</div>
7377
</div>
7478
{%- endif -%}

templates/docs/examples/patterns/tiered-list/with-default-width-image.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ <h2>H2 - up to two lines; ideally one.</h2>
1919
{%- endif -%}
2020

2121
{%- if slot == "image" -%}
22-
<div class="p-image-container">
2322
{{ image(url="https://assets.ubuntu.com/v1/3f63a18c-data-center.png",
2423
alt="",
2524
width="2464",
@@ -29,7 +28,6 @@ <h2>H2 - up to two lines; ideally one.</h2>
2928
attrs={"class": "p-image-container__image"}
3029
) | safe
3130
}}
32-
</div>
3331
{%- endif -%}
3432

3533
{%- if slot == 'list_item_title_1' -%}

templates/docs/examples/patterns/tiered-list/with-full-width-image.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ <h2>H2 - up to two lines; ideally one.</h2>
1919
{%- endif -%}
2020

2121
{%- if slot == "image" -%}
22-
<div class="p-image-container--cinematic is-cover">
2322
{{ image(url="https://assets.ubuntu.com/v1/3f63a18c-data-center.png",
2423
alt="",
2524
width="2464",
@@ -29,7 +28,6 @@ <h2>H2 - up to two lines; ideally one.</h2>
2928
attrs={"class": "p-image-container__image"}
3029
) | safe
3130
}}
32-
</div>
3331
{%- endif -%}
3432

3533
{%- if slot == 'list_item_title_1' -%}

0 commit comments

Comments
 (0)