chore: fixed overlay demo bugs

This commit is contained in:
Thijs Louisse 2019-09-25 12:46:42 +02:00
parent 4b858cbea7
commit 0447325a1d
2 changed files with 1 additions and 2 deletions

View file

@ -9,7 +9,6 @@ const bottomsheetDemoStyle = css`
background-color: white; background-color: white;
border: 1px solid lightgrey; border: 1px solid lightgrey;
text-align: center; text-align: center;
height: 800px;
} }
`; `;

View file

@ -27,7 +27,7 @@ const togglePlacement = overlayCtrl => {
]; ];
placement = placements[(placements.indexOf(placement) + 1) % placements.length]; placement = placements[(placements.indexOf(placement) + 1) % placements.length];
// eslint-disable-next-line no-param-reassign // eslint-disable-next-line no-param-reassign
overlayCtrl.overlayContainerClass = `global-overlays__overlay-container--${placement}`; overlayCtrl.overlayContainerPlacementClass = `${overlayCtrl.overlayContainerClass}--${placement}`;
}; };
storiesOf('Global Overlay System|Global Overlay', module) storiesOf('Global Overlay System|Global Overlay', module)