mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
feat(uishell): add right panel links
This commit is contained in:
parent
7146c69549
commit
44189c8819
5 changed files with 43 additions and 9 deletions
|
@ -18,12 +18,6 @@
|
|||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.component-form {
|
||||
margin: 1rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
<svelte:window on:mouseup={mouseUp} />
|
||||
|
||||
<div id="right-panel-action-component">
|
||||
|
@ -42,9 +36,7 @@
|
|||
id="right-panel-action-component-form"
|
||||
class={cx('--header-panel', '--header-panel--expanded')}
|
||||
transition:slide={{ duration: 200 }}>
|
||||
<div class="component-form">
|
||||
<slot />
|
||||
</div>
|
||||
<slot />
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
<style>
|
||||
.subject-divider {
|
||||
color: #525252;
|
||||
padding-bottom: 4px;
|
||||
border-bottom: 1px solid #525252;
|
||||
margin: 32px 1rem 8px;
|
||||
}
|
||||
.subject-divider span {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 400;
|
||||
line-height: 1rem;
|
||||
letter-spacing: 0.32px;
|
||||
color: #c6c6c6;
|
||||
}
|
||||
</style>
|
||||
|
||||
<li class="subject-divider">
|
||||
<span>
|
||||
<slot />
|
||||
</span>
|
||||
</li>
|
11
src/components/UIShell/GlobalHeader/HeaderPanelLink.svelte
Normal file
11
src/components/UIShell/GlobalHeader/HeaderPanelLink.svelte
Normal file
|
@ -0,0 +1,11 @@
|
|||
<script>
|
||||
export let href;
|
||||
|
||||
import { cx } from '../../../lib';
|
||||
</script>
|
||||
|
||||
<li class={cx('--switcher__item')}>
|
||||
<a class={cx('--switcher__item-link')} {href}>
|
||||
<slot />
|
||||
</a>
|
||||
</li>
|
|
@ -0,0 +1,7 @@
|
|||
<script>
|
||||
import { cx } from '../../../lib';
|
||||
</script>
|
||||
|
||||
<ul class={cx('--switcher__item')}>
|
||||
<slot />
|
||||
</ul>
|
|
@ -14,3 +14,6 @@ export { default as HeaderUtilities } from './GlobalHeader/HeaderUtilities.svelt
|
|||
export { default as HeaderAction } from './GlobalHeader/HeaderAction.svelte';
|
||||
export { default as HeaderActionLink } from './GlobalHeader/HeaderActionLink.svelte';
|
||||
export { default as HeaderActionSearch } from './GlobalHeader/HeaderActionSearch.svelte';
|
||||
export { default as HeaderPanelDivider } from './GlobalHeader/HeaderPanelDivider.svelte';
|
||||
export { default as HeaderPanelLink } from './GlobalHeader/HeaderPanelLink.svelte';
|
||||
export { default as HeaderPanelLinks } from './GlobalHeader/HeaderPanelLinks.svelte';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue