-
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(alert): add component tokens (#10218)
**Related Issue:** [#7180](#7180) ## Summary Add `alert` component tokens. `--calcite-alert-background-color`: Specifies the component's background color. `--calcite-alert-corner-radius`: Specifies the component's border radius. `--calcite-alert-shadow`: Specifies the component's shadow.
- Loading branch information
1 parent
99a7148
commit 550427b
Showing
4 changed files
with
108 additions
and
59 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,14 @@ | ||
import { html } from "../../support/formatting"; | ||
import { SLOTS } from "../components/alert/resources"; | ||
|
||
export const alertTokens = { | ||
calciteAlertWidth: "", | ||
calciteAlertBackgroundColor: "", | ||
calciteAlertCornerRadius: "", | ||
calciteAlertShadow: "", | ||
}; | ||
|
||
export const alert = html`<calcite-alert label="this is a default alert" scale="s" open> | ||
<div slot="${SLOTS.title}">Test title</div> | ||
<div slot="${SLOTS.message}">Test message</div> | ||
</calcite-alert>`; |