Skip to content

Commit

Permalink
Fix: Do not overflow floated elements in examples (#773)
Browse files Browse the repository at this point in the history
Add a block formatting context to the preview div so that any floated elements are contained
  • Loading branch information
roblevintennis authored and sapegin committed Jan 12, 2018
1 parent 06b7ae5 commit ae960ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rsg-components/Playground/PlaygroundRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export const styles = ({ space, color, borderRadius }) => ({
padding: space[2],
border: [[1, color.border, 'solid']],
borderRadius,
// the next 2 lines are required to contain floated components
width: '100%',
display: 'inline-block',
},
controls: {
display: 'flex',
Expand Down

0 comments on commit ae960ca

Please sign in to comment.