Skip to content

Commit

Permalink
fix(switch,progressbar): add story params for package meta info
Browse files Browse the repository at this point in the history
  • Loading branch information
pfulton authored and castastrophe committed Oct 2, 2024
1 parent 9bd460b commit d88aeba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions components/progressbar/stories/progressbar.stories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { disableDefaultModes } from "@spectrum-css/preview/modes";
import { Sizes } from "@spectrum-css/preview/decorators";
import { isIndeterminate, size, staticColor } from "@spectrum-css/preview/types";
import pkgJson from "../package.json";
import { ProgressBarGroup } from "./progressbar.test.js";
import { IndeterminateGroup, Template } from "./template.js";

Expand Down Expand Up @@ -90,6 +91,9 @@ export default {
isIndeterminate: false,
showValueLabel: true,
},
parameters: {
packageJson: pkgJson,
}
};

/**
Expand Down
4 changes: 3 additions & 1 deletion components/switch/stories/switch.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export default {
label: "Switch label",
size: "m",
},
packageJson: pkgJson,
parameters: {
packageJson: pkgJson
}
};

export const Default = SwitchGroup.bind({});
Expand Down

0 comments on commit d88aeba

Please sign in to comment.