From a8b6bf5046841992a0502424c840ffc560b669b9 Mon Sep 17 00:00:00 2001 From: Ryan Kienstra Date: Sat, 15 Apr 2023 17:27:38 -0600 Subject: [PATCH] Commit Marco's diff verbatim https://github.com/WordPress/gutenberg/pull/49377#pullrequestreview-1386425761 --- .../navigable-container/stories/navigable-menu.tsx | 10 ++++++---- .../stories/tabbable-container.tsx | 11 +++++++---- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/packages/components/src/navigable-container/stories/navigable-menu.tsx b/packages/components/src/navigable-container/stories/navigable-menu.tsx index 0c433e01fdc7cf..5f8ee2e4e5d856 100644 --- a/packages/components/src/navigable-container/stories/navigable-menu.tsx +++ b/packages/components/src/navigable-container/stories/navigable-menu.tsx @@ -13,11 +13,13 @@ const meta: ComponentMeta< typeof NavigableMenu > = { component: NavigableMenu, argTypes: { children: { control: { type: null } }, - onNavigate: { action: 'onNavigate' }, - orientation: { - options: [ 'horizontal', 'vertical' ], - control: { type: 'radio' }, + }, + parameters: { + actions: { argTypesRegex: '^on.*' }, + controls: { + expanded: true, }, + docs: { source: { state: 'open' } }, }, }; export default meta; diff --git a/packages/components/src/navigable-container/stories/tabbable-container.tsx b/packages/components/src/navigable-container/stories/tabbable-container.tsx index 8b9221ea54361a..b517019e29571b 100644 --- a/packages/components/src/navigable-container/stories/tabbable-container.tsx +++ b/packages/components/src/navigable-container/stories/tabbable-container.tsx @@ -12,11 +12,14 @@ const meta: ComponentMeta< typeof TabbableContainer > = { title: 'Components/TabbableContainer', component: TabbableContainer, argTypes: { - children: { type: undefined }, - cycle: { - type: 'boolean', + children: { control: { type: null } }, + }, + parameters: { + actions: { argTypesRegex: '^on.*' }, + controls: { + expanded: true, }, - onNavigate: { action: 'onNavigate' }, + docs: { source: { state: 'open' } }, }, }; export default meta;