mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
parent
dfa83bec9a
commit
bc7f5821b8
16 changed files with 26 additions and 25 deletions
|
@ -17,8 +17,8 @@
|
|||
<main
|
||||
id="{id}"
|
||||
class:bx--content="{true}"
|
||||
style:margin-left="{unsetLeftMargin ? 0 : undefined}"
|
||||
{...$$restProps}
|
||||
style="{unsetLeftMargin ? 'margin-left: 0;' : ''} {$$restProps.style}"
|
||||
>
|
||||
<slot />
|
||||
</main>
|
||||
|
|
|
@ -74,8 +74,8 @@
|
|||
href="{href}"
|
||||
class:bx--header__menu-item="{true}"
|
||||
class:bx--header__menu-title="{true}"
|
||||
style:z-index="{1}"
|
||||
{...$$restProps}
|
||||
style="{$$restProps.style}; z-index: 1"
|
||||
on:keydown
|
||||
on:keydown="{(e) => {
|
||||
if (e.key === ' ') e.preventDefault();
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
}}"
|
||||
class:bx--side-nav__overlay="{true}"
|
||||
class:bx--side-nav__overlay-active="{isOpen}"
|
||||
style="{isOpen && 'z-index: 6000'}"
|
||||
style:z-index="{isOpen ? 6000 : undefined}"
|
||||
></div>
|
||||
{/if}
|
||||
<nav
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
<ul
|
||||
role="menu"
|
||||
class:bx--side-nav__menu="{true}"
|
||||
style="{expanded && 'max-height: none'}"
|
||||
style:max-height="{expanded ? "none" : undefined}"
|
||||
>
|
||||
<slot />
|
||||
</ul>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue