From a582b4600ce27fae664aff621c0f7aabdd9e929d Mon Sep 17 00:00:00 2001 From: emyarod Date: Fri, 28 Feb 2020 13:18:48 -0600 Subject: [PATCH] docs: expose selectorPrimaryFocus knobs --- .../OverflowMenu/OverflowMenu-story.js | 4 ++++ .../src/components/Tooltip/Tooltip-story.js | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/packages/react/src/components/OverflowMenu/OverflowMenu-story.js b/packages/react/src/components/OverflowMenu/OverflowMenu-story.js index 2c30152b3450..639e944f4101 100644 --- a/packages/react/src/components/OverflowMenu/OverflowMenu-story.js +++ b/packages/react/src/components/OverflowMenu/OverflowMenu-story.js @@ -26,6 +26,10 @@ const props = { iconDescription: text('Icon description (iconDescription)', ''), flipped: boolean('Flipped (flipped)', false), light: boolean('Light (light)', false), + selectorPrimaryFocus: text( + 'Primary focus element selector (selectorPrimaryFocus)', + '' + ), onClick: action('onClick'), onFocus: action('onFocus'), onKeyDown: action('onKeyDown'), diff --git a/packages/react/src/components/Tooltip/Tooltip-story.js b/packages/react/src/components/Tooltip/Tooltip-story.js index 53984364a1ca..433b16f71792 100644 --- a/packages/react/src/components/Tooltip/Tooltip-story.js +++ b/packages/react/src/components/Tooltip/Tooltip-story.js @@ -25,18 +25,30 @@ const props = { direction: select('Tooltip direction (direction)', directions, 'bottom'), triggerText: text('Trigger text (triggerText)', 'Tooltip label'), tabIndex: number('Tab index (tabIndex in )', 0), + selectorPrimaryFocus: text( + 'Primary focus element selector (selectorPrimaryFocus)', + '' + ), }), withoutIcon: () => ({ showIcon: false, direction: select('Tooltip direction (direction)', directions, 'bottom'), triggerText: text('Trigger text (triggerText)', 'Tooltip label'), tabIndex: number('Tab index (tabIndex in )', 0), + selectorPrimaryFocus: text( + 'Primary focus element selector (selectorPrimaryFocus)', + '' + ), }), customIcon: () => ({ showIcon: true, direction: select('Tooltip direction (direction)', directions, 'bottom'), triggerText: text('Trigger text (triggerText)', 'Tooltip label'), tabIndex: number('Tab index (tabIndex in )', 0), + selectorPrimaryFocus: text( + 'Primary focus element selector (selectorPrimaryFocus)', + '' + ), renderIcon: React.forwardRef((props, ref) => (
@@ -52,6 +64,10 @@ const props = { direction: select('Tooltip direction (direction)', directions, 'bottom'), iconDescription: 'Helpful Information', tabIndex: number('Tab index (tabIndex in )', 0), + selectorPrimaryFocus: text( + 'Primary focus element selector (selectorPrimaryFocus)', + '' + ), renderIcon: OverflowMenuVertical16, }), };