igniteui-astro-components 0.0.5 → 0.0.6

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.
@@ -30,7 +30,15 @@ export interface Props {
30
30
  siteTitle?: string;
31
31
  }
32
32
 
33
- const { title, description, keywords, hasToc = true, hasSidebar = true, currentSlug = '', siteTitle: siteTitleProp } = Astro.props;
33
+ const {
34
+ title,
35
+ description,
36
+ keywords,
37
+ hasToc = true,
38
+ hasSidebar = true,
39
+ currentSlug = '',
40
+ siteTitle: siteTitleProp,
41
+ } = Astro.props;
34
42
  const resolvedSiteTitle = siteTitleProp ?? siteTitle;
35
43
  const navTheme = (virtualPlatform ?? import.meta.env.VITE_NAV_THEME ?? 'igniteui') as string;
36
44
  const showGlobalNav = navTheme !== 'none';
@@ -157,7 +165,10 @@ type HeadEntry = { tag: string; attrs?: Record<string, string | boolean | undefi
157
165
  -->
158
166
  <div class="igd-page-layout ig-typography">
159
167
  <!-- TODO: WE DONT NEED TO CALCULAtE THE IG HEADER HEIGHT ANYMORE - REMOVE IT -->
160
- <DocsSubHeader style={ `--docs-global-nav-height: ${ showGlobalNav ? '4.7rem': '0' }` } data-nav-height-wrapper/>
168
+ <!-- <DocsSubHeader style={ `--docs-global-nav-height: ${ showGlobalNav ? '4.7rem': '0' }` } data-nav-height-wrapper/> -->
169
+ <slot name="subheader">
170
+ <DocsSubHeader pageTitle={title} currentSlug={currentSlug} siteTitle={siteTitleProp} style={ `--docs-global-nav-height: ${ showGlobalNav ? '4.7rem': '0' }` } data-nav-height-wrapper />
171
+ </slot>
161
172
 
162
173
 
163
174
  { hasSidebar && (