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" }, + }, + }, }, };