@sofidevo/astro-dynamic-header 1.0.32 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Header.astro +10 -6
package/package.json
CHANGED
package/src/Header.astro
CHANGED
|
@@ -98,14 +98,18 @@ const {
|
|
|
98
98
|
{logoText && <span class="header__logo-text" style={`color: ${logoTextColor}; font-size: ${logoTextSize};`}>{logoText}</span>}
|
|
99
99
|
</a>
|
|
100
100
|
<NavMenu menuItems={menuItems} />
|
|
101
|
-
|
|
102
|
-
<
|
|
103
|
-
</div>
|
|
104
|
-
<HamburgerButton />
|
|
105
|
-
<MobileNav menuItems={menuItems} type={headerType}>
|
|
106
|
-
<div class="actions-mobile" slot="slot-panel">
|
|
101
|
+
{Astro.slots.has('actions') && (
|
|
102
|
+
<div class="actions-desktop">
|
|
107
103
|
<slot name="actions" />
|
|
108
104
|
</div>
|
|
105
|
+
)}
|
|
106
|
+
<HamburgerButton />
|
|
107
|
+
<MobileNav menuItems={menuItems} type={headerType}>
|
|
108
|
+
{Astro.slots.has('actions') && (
|
|
109
|
+
<div class="actions-mobile" slot="slot-panel">
|
|
110
|
+
<slot name="actions" />
|
|
111
|
+
</div>
|
|
112
|
+
)}
|
|
109
113
|
</MobileNav>
|
|
110
114
|
|
|
111
115
|
</header>
|