Skip to content

Commit

Permalink
feat: hide non receipt elements for print
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bedon committed Jun 18, 2024
1 parent 1658510 commit 44c6ce7
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/components/Thanks/WhatIsNextTemplate.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="md:tw-py-6 md:tw-rounded tw-mx-auto tw-overflow-x-hidden tw-relative" :style="{maxWidth: '620px'}">
<div class="tw-bg-marigold-1 md:tw-rounded-b">
<div class="tw-bg-eco-green-3 tw-text-center tw-pt-4 md:tw-rounded-t">
<div class="tw-bg-eco-green-3 tw-text-center tw-pt-4 md:tw-rounded-t hide-for-print">
<h1 class="tw-text-white">
Success!
</h1>
Expand Down Expand Up @@ -40,7 +40,7 @@
</div>
</div>
</div>
<div class="tw-relative tw-flex tw-justify-center">
<div class="tw-relative tw-flex tw-justify-center hide-for-print">
<div class="tw-bg-marigold-1 tw-absolute oval"></div>
<div
class="secondary-container"
Expand Down Expand Up @@ -131,7 +131,7 @@
</div>
</div>
<div class="tw-py-5 tw-px-3 md:tw-px-8">
<div class="tw-mb-2">
<div class="tw-mb-2 hide-for-print">
<div v-if="selectOption && !isGuest">
<kv-button
class="tw-w-full"
Expand Down Expand Up @@ -185,7 +185,7 @@
<div class="tw-mb-2">
<!-- eslint-disable-next-line max-len -->
<div
class="option-box"
class="option-box hide-for-print"
:class="{'open' : openOrderConfirmation}"
@click="() => openOrderConfirmation = !openOrderConfirmation"
v-kv-track-event="[
Expand Down Expand Up @@ -216,7 +216,7 @@
</div>
</kv-expandable>
</div>
<div>
<div class="hide-for-print">
<div
class="option-box"
:class="{'open' : openShareModule}"
Expand Down Expand Up @@ -510,4 +510,8 @@ export default {
@apply tw-border-t-0 tw-border-l-0 tw-border-r-0 tw-rounded-none;
}
.hide-for-print {
@apply print:tw-hidden;
}
</style>

0 comments on commit 44c6ce7

Please sign in to comment.