Skip to content

Commit

Permalink
Visual tweaks for Percy
Browse files Browse the repository at this point in the history
  • Loading branch information
BPScott committed Dec 21, 2018
1 parent cf9f8cf commit 15aedf4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .storybook/stories-from-readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,19 @@ function AllExamplesStoryForReadme(readme) {
// Prevent false positives in visual regression testing.
// Set a minimum height so that examples don't shift and triger
// a failure if an example above them changes height
const containerStyle = {minHeight: '720px'};
const containerStyle = {
minHeight: '720px',
borderBottom: '1px solid #000',
marginBottom: '8px',
};

return (
<React.Fragment>
{readme.examples.map((example) => (
<React.Fragment key={example.name}>
<div style={containerStyle}>
<example.Component />
</div>
<hr />
</React.Fragment>
<div key={example.name} style={containerStyle}>
<Polaris.Heading>{example.name}</Polaris.Heading>
<example.Component />
</div>
))}
</React.Fragment>
);
Expand Down

0 comments on commit 15aedf4

Please sign in to comment.