Skip to content

Commit 6b90d3b

Browse files
committed
Hide Footer component on print
1 parent 3c6c3fa commit 6b90d3b

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎src/components/Footer/footer.module.css.d.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
declare const styles: {
22
readonly footerGrid: string
33
readonly footerContact: string
4+
readonly footerPrintContact: string
45
readonly footerSocial: string
56
readonly footerBottomRow: string
67
readonly footerBottomPrimary: string

‎src/components/Footer/index.astro‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const footerTextLinkClasses = [
6262
---
6363

6464
<site-footer transition:persist>
65-
<footer class="w-full bg-page-offset mt-6 pt-4" role="contentinfo">
65+
<footer class="w-full bg-page-offset mt-6 pt-4 print:hidden" role="contentinfo">
6666
<div
6767
id="footer-inner"
6868
class:list={[
@@ -142,7 +142,6 @@ const footerTextLinkClasses = [
142142
<div class:list={[
143143
styles.footerHireMe,
144144
'hidden lg:block lg:self-end lg:mt-8',
145-
'print:hidden!',
146145
]}>
147146
<a
148147
href="/contact"
@@ -159,7 +158,7 @@ const footerTextLinkClasses = [
159158
</div>
160159

161160
{/* Page footer Social Share links */}
162-
<nav class:list={["mt-5", styles.footerSocial, 'print:hidden!']} aria-label="Social links">
161+
<nav class:list={["mt-5", styles.footerSocial]} aria-label="Social links">
163162
<ul class="grid list-none gap-x-4 gap-y-3 p-0 sm:mb-0 sm:mt-0 sm:mx-0 lg:grid-cols-2">
164163
{
165164
contactData.company.social
@@ -197,7 +196,6 @@ const footerTextLinkClasses = [
197196
styles.footerBottomRow,
198197
'mt-4 px-1 pt-4 pb-3 sm:p-0',
199198
'lg:pl-8',
200-
'print:hidden!',
201199
]}
202200
>
203201
<div class="grid grid-cols-2 gap-x-4 gap-y-3 lg:grid-cols-1">

0 commit comments

Comments
 (0)