Skip to content

Commit b2a6a13

Browse files
committed
Correcting sizing styles
1 parent b4d4bcd commit b2a6a13

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

packages/compass-components/src/components/modals/modal.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React from 'react';
22
import { css, cx } from '@leafygreen-ui/emotion';
3+
import { spacing } from '@leafygreen-ui/tokens';
34
import { Body, Modal as LeafyGreenModal } from '../leafygreen';
45
import { withStackedComponentStyles } from '../../hooks/use-stacked-component';
56

67
const 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

1919
const 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%',

packages/connection-form/src/components/connection-form-modal.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ import ConnectionForm from './connection-form';
77
const styles = css({
88
width: '960px',
99
maxWidth: '960px',
10-
11-
display: 'flex',
12-
alignItems: 'stretch',
13-
justifyContent: 'stretch',
1410
});
1511

1612
export default function ConnectionFormModal({

0 commit comments

Comments
 (0)