Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
#582 fix crosssell to pass the title
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-englander committed Feb 6, 2023
1 parent f9f34ad commit 4f7a7a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/CrossSell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class="grid-container margin-top-8">
<div class="grid-row grid-gap">
<h2 class="font-heading-lg tablet:font-heading-xl margin-y-5">
{{ $t("crossSell.title") }}
{{ title }}
</h2>
</div>

Expand All @@ -18,6 +18,7 @@
:key="card.slug"
class="usa-card desktop:grid-col-6"
:aria-label="card.title">
<!-- TODO: if we keep related content, let's unwrap the card from the link -->
<nuxt-link
class="display-block height-full margin-x-1"
style="text-decoration: none; outline-offset: 0.25rem"
Expand Down
1 change: 1 addition & 0 deletions pages/_lifeEvent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@
<CrossSell
v-if="$config.oneEventVersion === false"
:cards="lifeEvent.related"
:title="$t('crossSell.title')"
class="print:display-none" />
</div>
</template>
Expand Down

0 comments on commit 4f7a7a1

Please sign in to comment.