From 1dd28bcc3a24f94be373ce5257ce44376c700eb3 Mon Sep 17 00:00:00 2001 From: Lene Gadewoll Date: Thu, 2 May 2024 14:50:55 +0200 Subject: [PATCH] docs(storybook): use include instead of hide for selected controls --- .../selectable/selectable.stories.tsx | 23 ++++--------------- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/src/components/selectable/selectable.stories.tsx b/src/components/selectable/selectable.stories.tsx index 7bf7d369c14..2d743693bc1 100644 --- a/src/components/selectable/selectable.stories.tsx +++ b/src/components/selectable/selectable.stories.tsx @@ -107,30 +107,17 @@ export const Playground: Story = { }; export const WithTooltip: Story = { + parameters: { + controls: { + include: ['options', 'singleSelection', 'searchable'], + }, + }, args: { options: options.map((option) => ({ ...option, ...toolTipProps })), searchable: false, }, render: ({ ...args }: EuiSelectableProps) => , }; -// hide props as they are not relevant for testing the story args -hideStorybookControls(WithTooltip, [ - 'allowExclusions', - 'children', - 'onChange', - 'isLoading', - 'renderOption', - 'emptyMessage', - 'errorMessage', - 'height', - 'isPreFiltered', - 'listProps', - 'loadingMessage', - 'noMatchesMessage', - 'onActiveOptionChange', - 'selectableScreenReaderText', - 'searchProps', -]); const StatefulSelectable = ({ options,