From 2c126637d629349a2002bbfe523e6beaf04ff99e Mon Sep 17 00:00:00 2001 From: theJohnnyMe Date: Fri, 25 Oct 2024 15:16:28 +0200 Subject: [PATCH] docs(storybook-table): controls for overflow --- ...able-component-expandable-rows.stories.tsx | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/packages/core/src/components/table/table-component-expandable-rows.stories.tsx b/packages/core/src/components/table/table-component-expandable-rows.stories.tsx index 258258479..4ce35b5f3 100644 --- a/packages/core/src/components/table/table-component-expandable-rows.stories.tsx +++ b/packages/core/src/components/table/table-component-expandable-rows.stories.tsx @@ -130,20 +130,23 @@ export default { control: { type: 'radio', }, - - options: ['auto', 'hidden'], - autoCollapse: { - name: 'Auto Collapse', - description: 'Automatically collapses other rows when one is expanded.', - control: { - type: 'boolean', - }, - table: { - defaultValue: { summary: false }, - }, + options: ['auto', 'hidden', 'visible'], + table: { + defaultValue: { summary: 'auto' }, + }, + }, + autoCollapse: { + name: 'Auto Collapse', + description: 'Automatically collapses other rows when one is expanded.', + control: { + type: 'boolean', + }, + table: { + defaultValue: { summary: false }, }, }, }, + args: { modeVariant: 'Inherit from parent', compactDesign: false, @@ -155,7 +158,7 @@ export default { column2Width: '', column3Width: '', column4Width: '', - overflow: 'scroll', + overflow: 'auto', autoCollapse: false, }, };