Skip to content

Commit

Permalink
refactor(picker): updates storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
jenndiaz authored and pfulton committed Feb 7, 2024
1 parent 1ef7906 commit 5d4cc47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions components/picker/stories/picker.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export default {
category: "Component",
},
control: "boolean",
if: { arg: "labelPosition", eq: "left" },
},
placeholder: {
name: "Placeholder",
Expand Down
7 changes: 3 additions & 4 deletions components/picker/stories/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { html } from "lit";
import { classMap } from "lit/directives/class-map.js";
import { ifDefined } from "lit/directives/if-defined.js";
import { styleMap } from "lit/directives/style-map.js";
import { when } from 'lit/directives/when.js';

import { Template as FieldLabel } from "@spectrum-css/fieldlabel/stories/template.js";
import { Template as HelpText } from "@spectrum-css/helptext/stories/template.js";
Expand Down Expand Up @@ -207,15 +208,13 @@ export const Template = ({
customStyles: customPopoverStyles,
content,
})}
${withSwitch ?
Switch({
${when (withSwitch, () => Switch({
...globals,
size,
label: "Toggle switch",
customStyles: {
"padding-inline-start": "15px"
}
})
: null}
})) }
`;
};

0 comments on commit 5d4cc47

Please sign in to comment.