From 05f00ebe4e322a6262f8f0dadd0c6178be331262 Mon Sep 17 00:00:00 2001 From: Bryan Cunningham Date: Thu, 22 Jan 2026 09:33:04 -0500 Subject: [PATCH] add more explicit screenshots --- .storybook/preview.tsx | 2 +- .../src/button/button.component.html | 3 +- libs/components/src/button/button.stories.ts | 240 ++++++++++++++++-- 3 files changed, 228 insertions(+), 17 deletions(-) diff --git a/.storybook/preview.tsx b/.storybook/preview.tsx index 266cf79d8b1..699520d8f15 100644 --- a/.storybook/preview.tsx +++ b/.storybook/preview.tsx @@ -9,7 +9,7 @@ setCompodocJson(docJson); const wrapperDecorator = componentWrapperDecorator((story) => { return /*html*/ ` -
+
${story}
`; diff --git a/libs/components/src/button/button.component.html b/libs/components/src/button/button.component.html index 26e0c3b4d3d..3116a7387f5 100644 --- a/libs/components/src/button/button.component.html +++ b/libs/components/src/button/button.component.html @@ -1,5 +1,6 @@ - + + @if (showLoadingStyle()) { diff --git a/libs/components/src/button/button.stories.ts b/libs/components/src/button/button.stories.ts index 4184ba92897..f6af20e0278 100644 --- a/libs/components/src/button/button.stories.ts +++ b/libs/components/src/button/button.stories.ts @@ -146,6 +146,14 @@ export const AllVariants: Story = {
`, }), + parameters: { + chromatic: { + modes: { + light: { theme: "light" }, + dark: { theme: "dark" }, + }, + }, + }, }; const sizeTemplate = /*html*/ ` @@ -281,23 +289,225 @@ export const InteractionStates: Story = { render: (args) => ({ props: args, template: /*html*/ ` -
- - - - - -
-
- Anchor - Anchor:hover - Anchor:focus-visible - Anchor:hover:focus-visible - Anchor:active +
+
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+ + +
+ + + + + +
+
`, }), - args: { - buttonType: "primary", + parameters: { + chromatic: { + modes: { + light: { theme: "light" }, + dark: { theme: "dark" }, + }, + }, }, };