diff --git a/common/changes/office-ui-fabric-react/coachmarkTeachingBubbleFix_2018-06-06-20-52.json b/common/changes/office-ui-fabric-react/coachmarkTeachingBubbleFix_2018-06-06-20-52.json new file mode 100644 index 0000000000000..379837a965cac --- /dev/null +++ b/common/changes/office-ui-fabric-react/coachmarkTeachingBubbleFix_2018-06-06-20-52.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "packageName": "office-ui-fabric-react", + "comment": "TeachingBubble: Fix content from wrapping to next line unncessarily", + "type": "patch" + } + ], + "packageName": "office-ui-fabric-react", + "email": "edwl@microsoft.com" +} \ No newline at end of file diff --git a/packages/office-ui-fabric-react/src/components/TeachingBubble/TeachingBubble.scss b/packages/office-ui-fabric-react/src/components/TeachingBubble/TeachingBubble.scss index 82e655e7d39dd..3d8d5369de048 100644 --- a/packages/office-ui-fabric-react/src/components/TeachingBubble/TeachingBubble.scss +++ b/packages/office-ui-fabric-react/src/components/TeachingBubble/TeachingBubble.scss @@ -60,6 +60,7 @@ max-width: 364px; border: 0; box-shadow: none !important; + width: calc(100% + 1px); animation-name: (bounceAnimation, opacityFadeIn); animation-duration: 2000ms; diff --git a/packages/office-ui-fabric-react/src/components/TeachingBubble/TeachingBubble.tsx b/packages/office-ui-fabric-react/src/components/TeachingBubble/TeachingBubble.tsx index 76f5443945861..f6648bf25f4ac 100644 --- a/packages/office-ui-fabric-react/src/components/TeachingBubble/TeachingBubble.tsx +++ b/packages/office-ui-fabric-react/src/components/TeachingBubble/TeachingBubble.tsx @@ -45,7 +45,7 @@ export class TeachingBubble extends BaseComponent diff --git a/packages/office-ui-fabric-react/src/components/TeachingBubble/TeachingBubbleContent.tsx b/packages/office-ui-fabric-react/src/components/TeachingBubble/TeachingBubbleContent.tsx index dd9cde00d7086..00d53688b6eb8 100644 --- a/packages/office-ui-fabric-react/src/components/TeachingBubble/TeachingBubbleContent.tsx +++ b/packages/office-ui-fabric-react/src/components/TeachingBubble/TeachingBubbleContent.tsx @@ -26,6 +26,7 @@ export class TeachingBubbleContent extends BaseComponent -

{this.props.children}

+

{children}

); } @@ -112,14 +114,14 @@ export class TeachingBubbleContent extends BaseComponent +
{imageContent} - {closeButton}
{headerContent} {bodyContent} {footerContent}
+ {closeButton}
); }