mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
feat(ui-shell): add Header skip-to-main-content slot
This commit is contained in:
parent
62cf3be278
commit
abc66248f8
2 changed files with 4 additions and 1 deletions
|
@ -43,6 +43,7 @@
|
||||||
<svelte:window bind:innerWidth={winWidth} />
|
<svelte:window bind:innerWidth={winWidth} />
|
||||||
|
|
||||||
<header role="banner" aria-label={ariaLabel} class:bx--header={true}>
|
<header role="banner" aria-label={ariaLabel} class:bx--header={true}>
|
||||||
|
<slot name="skip-to-main-content" />
|
||||||
{#if winWidth < 1056}
|
{#if winWidth < 1056}
|
||||||
<HamburgerMenu bind:isOpen={isSideNavOpen} />
|
<HamburgerMenu bind:isOpen={isSideNavOpen} />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
|
@ -129,7 +129,9 @@
|
||||||
|
|
||||||
{#if story === 'header'}
|
{#if story === 'header'}
|
||||||
<Header {...$$props} company={undefined}>
|
<Header {...$$props} company={undefined}>
|
||||||
|
<div slot="skip-to-main-content">
|
||||||
<SkipToContent />
|
<SkipToContent />
|
||||||
|
</div>
|
||||||
<span slot="platform" class="platform-name">
|
<span slot="platform" class="platform-name">
|
||||||
Platform Name
|
Platform Name
|
||||||
<small>1.12.2</small>
|
<small>1.12.2</small>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue