Skip to content

Commit c82fd5a

Browse files
committed
Canonical Tailwind classes in Header component
1 parent 2be1df2 commit c82fd5a

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
@@ -51,33 +51,33 @@ const { path } = Astro.props
5151
{/* Header for all pages */}
5252
<header
5353
id="header"
54-
class="flex flex-row items-center justify-between py-2 lg:py-3 relative mx-auto max-w-[75rem] w-[90%] px-4 sm:px-6 lg:px-8"
54+
class="flex flex-row items-center justify-between py-2 lg:py-3 relative mx-auto max-w-300 w-[90%] px-4 sm:px-6 lg:px-8"
5555
role="banner"
5656
>
5757
{/*- Element for animated background behind mobile navigation menu -*/}
5858
<div id="mobile-splash" class="mobile-splash" aria-hidden="true" data-testid="mobile-splash-backdrop"></div>
5959
{/* Logo and wordmark */}
60-
<span id="header__brand" class="flex items-center justify-between relative z-[var(--z-content-overlay)]">
60+
<span id="header__brand" class="flex items-center justify-between relative z-(--z-content-overlay)">
6161
<Brand />
6262
</span>
6363
{/* Focus trap container for mobile navigation - invisible wrapper for accessibility */}
6464
<div id="mobile-nav-focus-container" class="contents">
6565
{/* Main Navigation Menu */}
66-
<span id="header__main-nav" class="lg:z-[var(--z-nav)] lg:flex-1 lg:mx-8">
66+
<span id="header__main-nav" class="lg:z-(--z-nav) lg:flex-1 lg:mx-8">
6767
<Menu path={path} />
6868
</span>
6969
{/* Mobile navigation toggle button to show menu on full-page splash screen */}
7070
<span
7171
id="header__nav-icon"
72-
class="block fixed right-4 sm:right-6 top-2 z-[var(--z-mobile-close-btn)] lg:hidden"
72+
class="block fixed right-4 sm:right-6 top-2 z-(--z-mobile-close-btn) lg:hidden"
7373
>
7474
<NavToggle />
7575
</span>
7676
</div>
7777
{/* Theme picker toggle button to show modal */}
7878
<span
7979
id="header__theme-icon"
80-
class="w-[calc(var(--header-icon-size)*2+0.5em)] lg:w-[var(--header-icon-size)] relative z-[var(--z-content-overlay)]"
80+
class="w-[calc(var(--header-icon-size)*2+0.5em)] lg:w-(--header-icon-size) relative z-(--z-content-overlay)"
8181
>
8282
<ThemeButton />
8383
</span>

0 commit comments

Comments
 (0)