chore: fixed overlay demo bugs
This commit is contained in:
parent
4b858cbea7
commit
0447325a1d
2 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue