Skip to content

Commit

Permalink
docs(progresscircle): increase Chromatic coverage for variants
Browse files Browse the repository at this point in the history
  • Loading branch information
mdt2 authored and pfulton committed Feb 13, 2024
1 parent 0b82dd9 commit fd0e3f4
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions components/progresscircle/stories/progresscircle.stories.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Import the component markup template
import isChromatic from "chromatic/isChromatic";
import { html } from "lit";
import { Template } from "./template";

export default {
Expand Down Expand Up @@ -54,5 +55,22 @@ export default {
},
};

export const Default = Template.bind({});
const chromaticKitchenSink = (args) => html`
${Template(args)}
${Template({
...args,
isIndeterminate: true,
})}
${Template({
...args,
overBackground: true,
})}
${Template({
...args,
isIndeterminate: true,
overBackground: true,
})}
`;

export const Default = (args) => isChromatic() ? chromaticKitchenSink(args) : Template(args);
Default.args = {};

0 comments on commit fd0e3f4

Please sign in to comment.