-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(flow, flow-item): add component tokens (#11365)
**Related Issue:** #7180 ## Summary Add `flow` and `flow-item` component tokens. ### Deprecates the following tokens - `--calcite-flow-item-footer-padding`: [Deprecated] Use `--calcite-flow-footer-space` instead. Specifies the padding of the component's footer. - `--calcite-flow-item-header-border-block-end`: [Deprecated] Use `--calcite-flow-border-color` instead. Specifies the component header's block end border. ### Adds the following tokens - `--calcite-flow-corner-radius`: Specifies the component's corner radius. - `--calcite-flow-heading-text-color`: Specifies the text color of the component's `heading`. - `--calcite-flow-description-text-color`: Specifies the text color of the component's `description`. - `--calcite-flow-border-color`: Specifies the component's border color. - `--calcite-flow-background-color`: Specifies the component's background color. - `--calcite-flow-header-background-color`: Specifies the background color of the component's header. - `--calcite-flow-footer-background-color`: Specifies the background color of the component's footer. - `--calcite-flow-space`: Specifies the padding of the component's `"unnamed (default)"` slot. - `--calcite-flow-header-content-space`: Specifies the padding of the `"header-content"` slot. - `--calcite-flow-footer-space`: Specifies the padding of the component's footer. - `--calcite-action-background-color`: Specifies the background color of the component's `closable`, `collapsible`, and `back` `calcite-action`s. Applies to any slotted `calcite-action`s. - `--calcite-action-background-color-hover`: Specifies the background color of the component's `closable`, `collapsible`, and `back` `calcite-action`s when hovered. Applies to any slotted `calcite-action`s. - `--calcite-action-background-color-pressed`: Specifies the background color of the component's `closable`, `collapsible`, and `back` `calcite-action`s when pressed. Applies to any slotted `calcite-action`s. - `--calcite-action-text-color-hover`: Specifies the text and icon color of the component's `closable`, `collapsible`, and `back` `calcite-action`s when hovered. Applies to any slotted `calcite-action`s. - `--calcite-action-text-color-pressed`: Specifies the text and icon color of the component's `closable`, `collapsible`, and `back` `calcite-action`s when pressed. Applies to any slotted `calcite-action`s. - `--calcite-popover-border-color`: Specifies the border color of the component's internally rendered `calcite-popover`, which is rendered within a `calcite-action` menu when slotted `calcite-action`s are present in the `header-actions-end` slot. Applies to any slotted `calcite-popover`s. - `--calcite-flow-header-action-background-color-hover`: Specifies the background color of the component's `calcite-action` items in the flow item header when hovered. - `--calcite-flow-header-action-background-color-press`: Specifies the background color of the component's `calcite-action` items in the flow item header when pressed. - `--calcite-flow-header-action-background-color`: Specifies the background color of the component's `calcite-action` items in the flow item header. - `--calcite-flow-header-action-indicator-color`: Specifies the color of the component's `calcite-action` items' indicator in the flow item header. - `--calcite-flow-header-action-text-color-press`: Specifies the text color of the component's `calcite-action` items in the flow item header when pressed. - `--calcite-flow-header-action-text-color`: Specifies the text color of the component's `calcite-action` items in the flow item header.
- Loading branch information
Showing
8 changed files
with
274 additions
and
8 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
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
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
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
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
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
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,50 @@ | ||
import { html } from "../../support/formatting"; | ||
|
||
export const flowTokens = { | ||
calciteFlowBackgroundColor: "", | ||
calciteFlowHeaderBackgroundColor: "", | ||
calciteFlowFooterBackgroundColor: "", | ||
calciteFlowSpace: "", | ||
calciteFlowHeaderContentSpace: "", | ||
calciteFlowFooterSpace: "", | ||
calciteActionBackgroundColor: "", | ||
calciteActionBackgroundColorHover: "", | ||
calciteActionBackgroundColorPressed: "", | ||
calciteActionTextColorHover: "", | ||
calciteActionTextColorPressed: "", | ||
calcitePopoverBorderColor: "", | ||
calciteFlowHeaderActionBackgroundColorHover: "", | ||
calciteFlowHeaderActionBackgroundColorPress: "", | ||
calciteFlowHeaderActionBackgroundColor: "", | ||
calciteFlowHeaderActionIndicatorColor: "", | ||
calciteFlowHeaderActionTextColorPress: "", | ||
calciteFlowHeaderActionTextColor: "", | ||
}; | ||
|
||
export const flow = html` | ||
<calcite-flow> | ||
<calcite-flow-item heading="flow-item-1" description="description"> </calcite-flow-item> | ||
<calcite-flow-item selected heading="flow-item-2" description="description"> | ||
<calcite-button slot="footer-end" width="half" appearance="outline">Cancel</calcite-button> | ||
<calcite-button slot="footer-start" width="half">Save</calcite-button> | ||
<calcite-action slot="header-menu-actions" text-enabled text="Add" label="Add Item" icon="plus"></calcite-action> | ||
<calcite-action | ||
slot="header-menu-actions" | ||
text-enabled | ||
text="Save" | ||
label="Save Item" | ||
icon="save" | ||
></calcite-action> | ||
<calcite-action | ||
slot="header-menu-actions" | ||
text-enabled | ||
text="Layers" | ||
label="View Layers" | ||
icon="layers" | ||
></calcite-action> | ||
<div slot="content-top">Slot for a content-top.</div> | ||
Hello world! | ||
<div slot="content-bottom">Content bottom!</div> | ||
</calcite-flow-item> | ||
</calcite-flow> | ||
`; |
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