Skip to content

Commit 237c452

Browse files
committed
Hide Header component on print
1 parent 6b90d3b commit 237c452

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/components/Header/index.astro

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import './index.css'
1919

2020
{/* Hidden modal shown when theme picker icon selected - moved to BaseLayout for persistence */}
2121
{/* Header for all pages */}
22-
<div class="header-shell">
23-
<div class="header-footprint print:hidden!" aria-hidden="true"></div>
22+
<div class="header-shell print:hidden">
23+
<div class="header-footprint" aria-hidden="true"></div>
2424
<div class="header-fixed">
2525
<header
2626
id="header"
@@ -31,7 +31,7 @@ import './index.css'
3131
{/*- Element for animated background behind mobile navigation menu -*/}
3232
<div
3333
id="mobile-splash"
34-
class="mobile-splash print:hidden!"
34+
class="mobile-splash"
3535
aria-hidden="true"
3636
data-testid="mobile-splash-backdrop"
3737
>
@@ -54,15 +54,15 @@ import './index.css'
5454
{/* Theme picker toggle button to show modal */}
5555
<span
5656
id="header__theme-icon"
57-
class="header-icon order-3 lg:order-4 ml-2 mr-2 block shrink-0 w-(--header-icon-size) h-(--header-icon-size) relative z-(--z-content-overlay) print:hidden!"
57+
class="header-icon order-3 lg:order-4 ml-2 mr-2 block shrink-0 w-(--header-icon-size) h-(--header-icon-size) relative z-(--z-content-overlay)"
5858
>
5959
<ThemeButton />
6060
</span>
6161

6262
{/* Header search icon that expands left into a search panel */}
6363
<span
6464
id="header__search-icon"
65-
class="header-icon order-4 lg:order-5 mr-2 lg:mr-0 block shrink-0 w-(--header-icon-size) h-(--header-icon-size) relative z-(--z-content-overlay) group-data-[header-search-open=true]/header:z-(--z-modal) lg:z-(--z-nav) print:hidden!"
65+
class="header-icon order-4 lg:order-5 mr-2 lg:mr-0 block shrink-0 w-(--header-icon-size) h-(--header-icon-size) relative z-(--z-content-overlay) group-data-[header-search-open=true]/header:z-(--z-modal) lg:z-(--z-nav)"
6666
>
6767
<SearchBar variant="header" />
6868
</span>

0 commit comments

Comments
 (0)