diff --git a/packages/carbon-web-components/src/components/combo-box/combo-box.stories.ts b/packages/carbon-web-components/src/components/combo-box/combo-box.stories.ts index 8862273943c..00590bc0620 100644 --- a/packages/carbon-web-components/src/components/combo-box/combo-box.stories.ts +++ b/packages/carbon-web-components/src/components/combo-box/combo-box.stories.ts @@ -65,8 +65,8 @@ const defaultArgs = { titleText: 'This is an example title', value: '', warn: false, - warnText: 'please notice the warning', -} + warnText: 'please notice the warning', +}; const controls = { disabled: { @@ -74,8 +74,9 @@ const controls = { description: `Specify if the dropdown should be disabled, or not.`, }, direction: { - control: 'select', options: directionOptions, - description: `Dropdown direction` + control: 'select', + options: directionOptions, + description: `Dropdown direction`, }, hideLabel: { control: 'boolean', @@ -102,8 +103,9 @@ const controls = { description: `Specify if the dropdown should be read only, or not.`, }, size: { - control: 'select', options: sizes, - description: `Dropdown size.` + control: 'select', + options: sizes, + description: `Dropdown size.`, }, titleText: { control: 'text', @@ -136,7 +138,7 @@ export const Default = { ` )} - ` + `, }; export const WithLayer = { @@ -159,7 +161,7 @@ export const WithLayer = { - ` + `, }; export const Playground = { @@ -204,8 +206,8 @@ export const Playground = { ` )} - ` -} + `, +}; const meta = { title: 'Components/Combo box', diff --git a/packages/carbon-web-components/src/components/dropdown/dropdown.stories.ts b/packages/carbon-web-components/src/components/dropdown/dropdown.stories.ts index 049ce8e9d0b..2f230d10902 100644 --- a/packages/carbon-web-components/src/components/dropdown/dropdown.stories.ts +++ b/packages/carbon-web-components/src/components/dropdown/dropdown.stories.ts @@ -73,8 +73,8 @@ const defaultArgs = { type: null, value: '', warn: false, - warnText: 'please notice the warning', -} + warnText: 'please notice the warning', +}; const controls = { disabled: { @@ -82,8 +82,9 @@ const controls = { description: `Specify if the dropdown should be disabled, or not.`, }, direction: { - control: 'select', options: directionOptions, - description: `Dropdown direction.` + control: 'select', + options: directionOptions, + description: `Dropdown direction.`, }, hideLabel: { control: 'boolean', @@ -114,16 +115,18 @@ const controls = { description: `Specify if the dropdown should be read only, or not.`, }, size: { - control: 'select', options: sizes, - description: `Dropdown size.` + control: 'select', + options: sizes, + description: `Dropdown size.`, }, titleText: { control: 'text', description: `Text that will be read by a screen reader when visiting this control.`, }, type: { - control: 'select', options: types, - description: `Dropdown size.` + control: 'select', + options: types, + description: `Dropdown size.`, }, value: { control: 'text', @@ -153,7 +156,7 @@ export const Default = { ` )} - ` + `, }; export const Inline = { @@ -170,7 +173,7 @@ export const Inline = { ` )} - ` + `, }; export const InlineWithLayer = { @@ -193,7 +196,7 @@ export const InlineWithLayer = { - ` + `, }; export const WithLayer = { @@ -216,7 +219,7 @@ export const WithLayer = { - ` + `, }; export const Playground = { @@ -239,32 +242,32 @@ export const Playground = { warn, warnText, }) => - html` - - ${items.map( - (elem) => html` - ${elem.text} - ` - )} - - ` + html` + + ${items.map( + (elem) => html` + ${elem.text} + ` + )} + + `, }; export const Skeleton = { @@ -273,8 +276,8 @@ export const Skeleton = { skip: true, }, }, - render: () => html` ` -} + render: () => html` `, +}; const meta = { title: 'Components/Dropdown', diff --git a/packages/carbon-web-components/src/components/layer/layer.stories.ts b/packages/carbon-web-components/src/components/layer/layer.stories.ts index 79ff1580ff1..7fccb76ffaa 100644 --- a/packages/carbon-web-components/src/components/layer/layer.stories.ts +++ b/packages/carbon-web-components/src/components/layer/layer.stories.ts @@ -20,15 +20,16 @@ const levels = { }; const defaultArgs = { - level: '0' -} + level: '0', +}; const controls = { level: { - control: 'radio', options: levels, - description: `Specify the layer level.` + control: 'radio', + options: levels, + description: `Specify the layer level.`, }, -} +}; export const Default = { render: () => html` @@ -44,7 +45,7 @@ export const Default = { - ` + `, }; export const CustomLevel = { @@ -56,7 +57,7 @@ export const CustomLevel = { - ` + `, }; export const UseLayer = { @@ -70,17 +71,17 @@ export const UseLayer = { }); return html` - -
+ +
+
-
- - ` - } + + `; + }, }; export const Playground = { @@ -91,7 +92,7 @@ export const Playground = { skip: true, }, }, - render: ({level}) => html` + render: ({ level }) => html`
Test component
diff --git a/packages/carbon-web-components/src/components/toggle-tip/toggletip.stories.ts b/packages/carbon-web-components/src/components/toggle-tip/toggletip.stories.ts index 2efaebd9370..686bd3d88aa 100644 --- a/packages/carbon-web-components/src/components/toggle-tip/toggletip.stories.ts +++ b/packages/carbon-web-components/src/components/toggle-tip/toggletip.stories.ts @@ -30,7 +30,7 @@ const tooltipAlignments = { const defaultArgs = { alignment: 'bottom', - open: false, + open: true, }; const controls = { @@ -64,7 +64,7 @@ export const Default = {
- Toggletip label -- using defaultOpen prop + Toggletip label -- using open prop

Lorem ipsum dolor sit amet, di os consectetur adipiscing elit, sed @@ -83,7 +83,7 @@ export const Playground = { args: defaultArgs, render: ({ alignment, open }) => html` - Toggletip label + Toggletip label -- using open prop

Lorem ipsum dolor sit amet, di os consectetur adipiscing elit, sed do