-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tooltip): add component tokens (#10687)
**Related Issue:** #7180 ## Summary Add `tooltip` component tokens. `--calcite-tooltip-background-color`: Specifies the background color of the component. `--calcite-tooltip-border-color`: Specifies the border color of the component. `--calcite-tooltip-corner-radius`: Specifies the corner radius of the component. `--calcite-tooltip-text-color`: Specifies the text color of the component.
- Loading branch information
Showing
5 changed files
with
117 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { html } from "../../support/formatting"; | ||
|
||
export const tooltipTokens = { | ||
calciteTooltipBackgroundColor: "", | ||
calciteTooltipBorderColor: "", | ||
calciteTooltipCornerRadius: "", | ||
calciteTooltipTextColor: "", | ||
calciteTooltipZIndex: "", | ||
}; | ||
|
||
export const tooltip = html` | ||
<calcite-label layout="inline"> | ||
<calcite-button title="Reference Element" id="tooltip-reference-element">nostrud exercitation</calcite-button> | ||
<calcite-tooltip reference-element="tooltip-reference-element" placement="auto" open> | ||
these 🥨s are making me thirsty | ||
</calcite-tooltip> | ||
</calcite-label> | ||
`; |
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