Skip to content

Commit 34e3fa0

Browse files
LFDanLuGitHub Enterprise
authored andcommitted
fix default size mentioned in description for ContextualHelp (#180)
1 parent c401600 commit 34e3fa0

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

packages/@react-spectrum/s2/src/ContextualHelp.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {ActionButton, ActionButtonProps} from './ActionButton';
1+
import {ActionButton} from './ActionButton';
22
import {AriaLabelingProps, DOMProps, FocusableRef} from '@react-types/shared';
33
import {ContentContext, FooterContext, HeadingContext} from './Content';
44
import {ContextValue, Dialog as RACDialog, DEFAULT_SLOT, Provider, TextContext, useContextProps} from 'react-aria-components';
@@ -25,10 +25,15 @@ export interface ContextualHelpStyleProps {
2525
export interface ContextualHelpProps extends
2626
Pick<DialogTriggerProps, 'isOpen' | 'defaultOpen' | 'onOpenChange' | 'shouldFlip' | 'offset' | 'crossOffset' | 'placement'>,
2727
Pick<PopoverProps, 'containerPadding'>,
28-
Pick<ActionButtonProps, 'size'>,
2928
ContextualHelpStyleProps, StyleProps, DOMProps, AriaLabelingProps {
3029
/** Contents of the Contextual Help popover. */
31-
children?: ReactNode
30+
children?: ReactNode,
31+
/**
32+
* The size of the ActionButton.
33+
*
34+
* @default 'XS'
35+
*/
36+
size?: 'XS' | 'S' | 'M' | 'L' | 'XL'
3237
}
3338

3439
const popover = style({

0 commit comments

Comments
 (0)