Skip to content

Commit

Permalink
docs(storybook): PR feedback & cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mgadewoll committed Mar 22, 2024
1 parent 7b0896a commit 76ab339
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/markdown_editor/markdown_format.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const meta: Meta<EuiMarkdownFormatProps> = {
control: { type: 'radio' },
options: [undefined, ...ALIGNMENTS],
},
...hideStorybookControls(['aria-label']),
},
// Component defaults
args: {
Expand All @@ -63,7 +64,6 @@ export const Playground: Story = {
['textAlign', 'color', 'grow'],
'EuiText props'
),
...hideStorybookControls(['aria-label']),
},
args: {
children: initialContent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ const meta: Meta<EuiResizeObserverProps> = {
export default meta;
type Story = StoryObj<EuiResizeObserverProps>;

const StatefulPlayground = (props: EuiResizeObserverProps) => {
const { onResize, ...rest } = props;
const StatefulPlayground = ({ onResize, ...rest }: EuiResizeObserverProps) => {
const [paddingSize, setPaddingSize] = useState<EuiPaddingSize>('s');
const [items, setItems] = useState(['Item 1', 'Item 2', 'Item 3']);
const [height, setHeight] = useState(0);
Expand Down

0 comments on commit 76ab339

Please sign in to comment.