Skip to content

Commit

Permalink
docs(tooltip): ensure tooltip is not hidden in storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan committed Feb 7, 2020
1 parent 4b9cc7c commit 0b9cd62
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions packages/react/src/components/Tooltip/Tooltip-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ const props = {
}),
};

const containerStyles = {
marginTop: '2rem',
marginLeft: '5rem',
};

Tooltip.displayName = 'Tooltip';

function UncontrolledTooltipExample() {
Expand Down Expand Up @@ -91,7 +96,7 @@ storiesOf('Tooltip', module)
.add(
'default (bottom)',
() => (
<div style={{ marginTop: '2rem' }}>
<div style={containerStyles}>
<Tooltip {...props.withIcon()}>
<p>
This is some tooltip text. This box shows the maximum amount of text
Expand Down Expand Up @@ -120,7 +125,7 @@ storiesOf('Tooltip', module)
.add(
'no icon',
() => (
<div style={{ marginTop: '2rem' }}>
<div style={containerStyles}>
<Tooltip {...props.withoutIcon()}>
<p>
This is some tooltip text. This box shows the maximum amount of text
Expand Down Expand Up @@ -149,7 +154,7 @@ storiesOf('Tooltip', module)
.add(
'custom icon',
() => (
<div style={{ marginTop: '2rem' }}>
<div style={containerStyles}>
<Tooltip {...props.customIcon()}>
<p>
This is some tooltip text. This box shows the maximum amount of text
Expand Down Expand Up @@ -178,7 +183,7 @@ storiesOf('Tooltip', module)
.add(
'only custom icon',
() => (
<div style={{ marginTop: '2rem' }}>
<div style={containerStyles}>
<Tooltip {...props.customIconOnly()}>
<p>
This is some tooltip text. This box shows the maximum amount of text
Expand Down

0 comments on commit 0b9cd62

Please sign in to comment.