Skip to content

Commit

Permalink
fix(select): update story (#1302)
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelbt committed May 17, 2022
1 parent b33204e commit aad4069
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions components/select/stories/arg-types.js
@@ -1,4 +1,4 @@
import { Shape } from '@vonage/vvd-foundation/constants';
import {Layout, Shape} from '@vonage/vvd-foundation/constants';


export const argTypes = {
Expand All @@ -22,13 +22,15 @@ export const argTypes = {
].includes(s)),
}
},
required: {
appearance: {
control: {
type: 'inline-radio',
options: { true: '', false: undefined },
},
type: 'select',
options: Object.values(Layout).filter(s => [
Layout.Outlined, Layout.Ghost
].includes(s)),
}
},
ghost: {
required: {
control: {
type: 'inline-radio',
options: { true: '', false: undefined },
Expand Down
2 changes: 1 addition & 1 deletion components/select/stories/select.stories.js
Expand Up @@ -17,7 +17,7 @@ const Template = (args) => html`
}
</style>
<vwc-select ...=${spread(args)} @selected=${onSelected}>
<vwc-list-item></vwc-list-item>
<vwc-list-item disabled selected value="Choose an item">Choose an item</vwc-list-item>
<vwc-list-item value="0">Item 0</vwc-list-item>
<vwc-list-item value="1">Item 1</vwc-list-item>
<vwc-list-item value="2">Item 2</vwc-list-item>
Expand Down

0 comments on commit aad4069

Please sign in to comment.