From 76ab339ba1617dd3abb2f01dca3ba20a83a9c777 Mon Sep 17 00:00:00 2001 From: Lene Gadewoll Date: Fri, 22 Mar 2024 11:05:30 +0100 Subject: [PATCH] docs(storybook): PR feedback & cleanup --- src/components/markdown_editor/markdown_format.stories.tsx | 2 +- .../observer/resize_observer/resize_observer.stories.tsx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/markdown_editor/markdown_format.stories.tsx b/src/components/markdown_editor/markdown_format.stories.tsx index ab1dc710b5a..1092ffba1a7 100644 --- a/src/components/markdown_editor/markdown_format.stories.tsx +++ b/src/components/markdown_editor/markdown_format.stories.tsx @@ -44,6 +44,7 @@ const meta: Meta = { control: { type: 'radio' }, options: [undefined, ...ALIGNMENTS], }, + ...hideStorybookControls(['aria-label']), }, // Component defaults args: { @@ -63,7 +64,6 @@ export const Playground: Story = { ['textAlign', 'color', 'grow'], 'EuiText props' ), - ...hideStorybookControls(['aria-label']), }, args: { children: initialContent, diff --git a/src/components/observer/resize_observer/resize_observer.stories.tsx b/src/components/observer/resize_observer/resize_observer.stories.tsx index 885e4ff114c..f2baa73e127 100644 --- a/src/components/observer/resize_observer/resize_observer.stories.tsx +++ b/src/components/observer/resize_observer/resize_observer.stories.tsx @@ -25,8 +25,7 @@ const meta: Meta = { export default meta; type Story = StoryObj; -const StatefulPlayground = (props: EuiResizeObserverProps) => { - const { onResize, ...rest } = props; +const StatefulPlayground = ({ onResize, ...rest }: EuiResizeObserverProps) => { const [paddingSize, setPaddingSize] = useState('s'); const [items, setItems] = useState(['Item 1', 'Item 2', 'Item 3']); const [height, setHeight] = useState(0);