- ${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
+`;
diff --git a/packages/calcite-components/src/tests/commonTests/themed.ts b/packages/calcite-components/src/tests/commonTests/themed.ts
index b9823e7f2cb..e3691930c2a 100644
--- a/packages/calcite-components/src/tests/commonTests/themed.ts
+++ b/packages/calcite-components/src/tests/commonTests/themed.ts
@@ -4,7 +4,7 @@ import type { RequireExactlyOne } from "type-fest";
import { E2EPage, E2EElement } from "@arcgis/lumina-compiler/puppeteerTesting";
import { expect, it } from "vitest";
import { getTokenValue } from "../utils/cssTokenValues";
-import { toElementHandle } from "../utils";
+import { skipAnimations, toElementHandle } from "../utils";
import type { ComponentTestSetup } from "./interfaces";
import { getTagAndPage } from "./utils";
@@ -75,6 +75,7 @@ export type ComponentTestTokens = Record
{
const { page, tag } = await getTagAndPage(componentTestSetup);
+ await skipAnimations(page);
await page.evaluate(() => {
// we block all clicks to prevent triggering behavior as mouse states are activated between assertions
document.addEventListener(