- ${accordion} ${actionBar} ${autocomplete} ${notices} ${segmentedControl}
+ ${accordion} ${actionBar} ${autocomplete} ${notice} ${segmentedControl}
${actionPad}
${actionMenu}
@@ -164,6 +164,7 @@ const componentTokens = {
...navigationLogoTokens,
...navigationTokens,
...navigationUserTokens,
+ ...noticeTokens,
...popoverTokens,
...progressTokens,
...sliderTokens,
diff --git a/packages/calcite-components/src/custom-theme/notice.ts b/packages/calcite-components/src/custom-theme/notice.ts
index e59eb3f3810..17bc1e56f7d 100644
--- a/packages/calcite-components/src/custom-theme/notice.ts
+++ b/packages/calcite-components/src/custom-theme/notice.ts
@@ -1,19 +1,15 @@
import { html } from "../../support/formatting";
-export const notice = ({ kind, message, title }: { kind: string; message: string; title: string }): string =>
- html`
- ${title}
- ${message}
- ${kind === "danger" ? html`Retry` : null}
- `;
+export const noticeTokens = {
+ calciteNoticeBackgroundColor: "",
+ calciteNoticeCloseBackgroundColorFocus: "",
+ calciteNoticeCloseBackgroundColorPress: "",
+ calciteNoticeCloseTextColorHover: "",
+ calciteNoticeCloseTextColor: "",
+ calciteNoticeContentTextColor: "",
+};
-export const notices = html`${notice({
- kind: "danger",
- message: "There was an error while performing the task.",
- title: "Something failed",
-})}
-${notice({
- kind: "success",
- message: "That thing you wanted to do worked as expected",
- title: "Something worked",
-})}`;
+export const notice = html`
+ Something worked
+ That thing you wanted to do worked as expected
+`;