+
(this._menuButtonElement = menuButton)}>
+
+
+ {isCalloutVisible ? (
+
+
+
+
+ Callout title here
+
+
+
+
+
+ Message body is optional. If help documentation is available, consider adding a link to learn more at the bottom.
+
+
+
+
+
+
+ ) : null}
+
+ );
+ }
+
+ private _onDismiss(ev: any): void {
+ this.setState({
+ isCalloutVisible: !this.state.isCalloutVisible
+ });
+ }
+}
diff --git a/packages/office-ui-fabric-react/src/components/Callout/index.ts b/packages/office-ui-fabric-react/src/components/Callout/index.ts
index b7bb1837bfe1d..b25a3958224c9 100644
--- a/packages/office-ui-fabric-react/src/components/Callout/index.ts
+++ b/packages/office-ui-fabric-react/src/components/Callout/index.ts
@@ -1,3 +1,5 @@
export * from './Callout';
export * from './Callout.types';
+export * from './FocusTrapCallout';
+export * from './FocusTrapCallout.types';
export * from '../../common/DirectionalHint';
diff --git a/packages/office-ui-fabric-react/src/components/HoverCard/CardCallout/CardCallout.tsx b/packages/office-ui-fabric-react/src/components/HoverCard/CardCallout/CardCallout.tsx
index 24fb1853d345f..9c4aebce21d0e 100644
--- a/packages/office-ui-fabric-react/src/components/HoverCard/CardCallout/CardCallout.tsx
+++ b/packages/office-ui-fabric-react/src/components/HoverCard/CardCallout/CardCallout.tsx
@@ -3,8 +3,8 @@ import * as React from 'react';
import { divProperties, getNativeProps } from '../../../Utilities';
import { Callout } from '../../../Callout';
import { DirectionalHint } from '../../../common/DirectionalHint';
-import { FocusTrapZone } from '../../../FocusTrapZone';
import { IBaseCardProps } from '../BaseCard.types';
+import { FocusTrapCallout, ICalloutProps } from '../../../Callout';
export interface ICardCalloutProps extends IBaseCardProps<{}, {}, {}> {
finalHeight?: number;
@@ -25,26 +25,35 @@ export const CardCallout = (props: ICardCalloutProps) => {
content
} = props;
+ const calloutProps: ICalloutProps = {
+ ...getNativeProps(props, divProperties),
+ className: className,
+ target: targetElement,
+ isBeakVisible: false,
+ directionalHint: directionalHint,
+ directionalHintFixed: directionalHintFixed,
+ finalHeight: finalHeight,
+ minPagePadding: 24,
+ onDismiss: onLeave,
+ gapSpace: gapSpace
+ };
+
return (
-