File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
compass-components/src/components/modals
connection-form/src/components Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { css , cx } from '@leafygreen-ui/emotion' ;
3+ import { spacing } from '@leafygreen-ui/tokens' ;
34import { Body , Modal as LeafyGreenModal } from '../leafygreen' ;
45import { withStackedComponentStyles } from '../../hooks/use-stacked-component' ;
56
67const styles = css ( {
7- width : '600px' ,
88 letterSpacing : 0 ,
99 padding : 0 ,
1010 // The LG modal applies transform: translate3d(0, 0, 0) style to the modal
@@ -17,9 +17,12 @@ const styles = css({
1717} ) ;
1818
1919const fullScreenStyles = css ( {
20- width : '100%' ,
21- height : '100%' ,
22- alignSelf : 'stretch' ,
20+ top : spacing [ '600' ] ,
21+ bottom : spacing [ '600' ] ,
22+ left : spacing [ '800' ] ,
23+ right : spacing [ '800' ] ,
24+ height : 'auto' ,
25+ width : 'auto' ,
2326 '& > div' : {
2427 height : '100%' ,
2528 maxHeight : '100%' ,
Original file line number Diff line number Diff line change @@ -7,10 +7,6 @@ import ConnectionForm from './connection-form';
77const styles = css ( {
88 width : '960px' ,
99 maxWidth : '960px' ,
10-
11- display : 'flex' ,
12- alignItems : 'stretch' ,
13- justifyContent : 'stretch' ,
1410} ) ;
1511
1612export default function ConnectionFormModal ( {
You can’t perform that action at this time.
0 commit comments