-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(shell-panel): Fix token story set up (#11635)
**Related Issue:** #11628 ## Summary Fixes the incorrect definitions and adds Shell Panel to the custom theme file.
- Loading branch information
1 parent
56adcf8
commit 0c002d9
Showing
3 changed files
with
34 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
packages/calcite-components/src/custom-theme/calcite-shell-panel.ts
This file was deleted.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
packages/calcite-components/src/custom-theme/shell-panel.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { html } from "../../support/formatting"; | ||
|
||
export const shellPanelTokens = { | ||
calciteShellPanelWidth: "", | ||
calciteShellPanelMaxWidth: "", | ||
calciteShellPanelMinWidth: "", | ||
calciteShellPanelHeight: "", | ||
calciteShellPanelMaxHeight: "", | ||
calciteShellPanelMinHeight: "", | ||
calciteShellPanelZIndex: "", | ||
calciteShellPanelBorderColor: "", | ||
calciteShellPanelCornerRadius: "", | ||
calciteShellPanelShadow: "", | ||
}; | ||
|
||
export const shellPanel = html`<calcite-shell-panel | ||
><calcite-panel heading="Panel Heading" description="Panel description" closable collapsible> | ||
<calcite-action text="Action 1" text-enabled icon="icon1" slot="header-menu-actions"></calcite-action> | ||
<calcite-action text="Action 2" text-enabled icon="icon2" slot="header-menu-actions"></calcite-action> | ||
<calcite-action text="Action 3" icon="icon3" slot="header-actions-end"></calcite-action> | ||
<div slot="content-top">Content at the top</div> | ||
<calcite-label slot="content-bottom" layout="inline-space-between" style="--calcite-label-margin-bottom: 0"> | ||
<calcite-checkbox></calcite-checkbox>Agree to terms | ||
</calcite-label> | ||
<p> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante | ||
dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. | ||
</p> | ||
<calcite-button slot="footer-end">Done</calcite-button> | ||
</calcite-panel> | ||
</calcite-shell-panel>`; |