-
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(inline-editable): add component tokens (#11357)
**Related Issue:** #7180 ## Summary Add `inline-editable` component tokens. `--calcite-inline-editable-background-color-hover`: Specifies the component's background color when hovered. `--calcite-inline-editable-background-color`: Specifies the component's background color. ` --calcite-inline-editable-button-background-color`: Specifies the button element's background color when appearance="solid" or appearance="outline-fill". `--calcite-inline-editable-button-corner-radius`: Specifies the button element's corner radius. `--calcite-inline-editable-button-loader-color`: Specifies the button element's loader color. `--calcite-inline-editable-button-shadow-color`: Specifies the button element's box-shadow color. `--calcite-inline-editable-button-text-color`: Specifies the button element's text color.
- Loading branch information
Showing
5 changed files
with
165 additions
and
16 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
17 changes: 17 additions & 0 deletions
17
packages/calcite-components/src/custom-theme/inline-editable.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,17 @@ | ||
import { html } from "../../support/formatting"; | ||
|
||
export const inlineEditableTokens = { | ||
calciteInlineEditableBackgroundColor: "", | ||
calciteInlineEditableBackgroundColorHover: "", | ||
calciteInlineEditableButtonBackgroundColor: "", | ||
calciteInlineEditableButtonCornerRadius: "", | ||
calciteInlineEditableButtonLoaderColor: "", | ||
calciteInlineEditableButtonShadowColor: "", | ||
calciteInlineEditableButtonTextColor: "", | ||
}; | ||
|
||
export const inlineEditable = html` | ||
<calcite-inline-editable> | ||
<calcite-input /> | ||
</calcite-inline-editable> | ||
`; |
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