Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

- TMS-1205: Rework grid-components featured section to be responsive
- TMS-1175: Realign hero button icons

## [1.11.0] - 2025-10-01
Expand Down
1 change: 1 addition & 0 deletions assets/styles/blocks/custom/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

&--featured {
grid-row: span 2 !important;
min-height: 60vh;

#{$item}__details {
aspect-ratio: auto;
Expand Down
36 changes: 19 additions & 17 deletions partials/blocks/block-grid-item--featured.dust
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
<div class="grid__item gallery gallery--gap0 gallery-columns-1 is-align-items-stretch grid__item--featured is-relative {classes}">
<div class="grid__item__image is-order-1 image is-square is-clipped">
<div class="grid__item gallery gallery--gap0 gallery-columns-1 is-align-items-stretch grid__item--featured is-relative {classes|attr}">
<div class="is-relative">
{?image.id}
{@image id=image.id size="large" class="objectfit-image" /}
<div class="grid__image is-absolute has-height-100 has-width-100">
{@image id=image.id size="large" class="objectfit-image" /}
<div class="overlay overlay--dark-40"></div>
</div>
{/image.id}
</div>

<div class="overlay overlay--dark-40"></div>

<div class="grid__item__details is-order-0 has-text-left is-absolute has-bottom-0 pb-5 pb-7-tablet pr-4 pr-6-tablet pl-4 pl-6-tablet has-text-white">
{?title}
<h3 class="h4 mb-0 has-text-white">{title|html}</h3>
{/title}
<div class="is-flex is-flex-direction-column is-justify-content-flex-end has-height-100">
<div class="grid__item__details is-relative is-order-0 has-text-left pb-5 pb-7-tablet pr-4 pr-6-tablet pl-4 pl-6-tablet has-text-white">
{?title}
<h3 class="h4 mb-0 has-text-white">{title|html}</h3>
{/title}

{?description}
<p class="has-text-small has-text-white mt-3 mb-0 mt-5-tablet">{description|html}</p>
{/description}
{?description}
<p class="has-text-small has-text-white mt-3 mb-0 mt-5-tablet">{description|html}</p>
{/description}

{?link}
{>"ui/button-link" classes="is-secondary has-width-fit-content ml-0 mt-4 mt-5-tablet" icon="arrow-right" icon_classes="icon--medium is-primary-invert" /}
{/link}
{?link}
{>"ui/button-link" classes="is-secondary has-width-fit-content ml-0 mt-4 mt-5-tablet" icon="arrow-right" icon_classes="icon--medium is-primary-invert" /}
{/link}
</div>
</div>
</div>
</div>
Loading