Skip to content

Commit 307b71c

Browse files
authored
feat: add support for XL Dialog (#8693)
* feat: GS-17937: add support for XL Dialog * XL=960 is the magic number * fix indention * fix spacing
1 parent fad8ae9 commit 307b71c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/@react-spectrum/s2/src/Dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface DialogProps extends Omit<RACDialogProps, 'className' | 'style'
3333
*
3434
* @default 'M'
3535
*/
36-
size?: 'S' | 'M' | 'L',
36+
size?: 'S' | 'M' | 'L' | 'XL',
3737
/** Whether pressing the escape key to close the dialog should be disabled. */
3838
isKeyboardDismissDisabled?: boolean
3939
}

packages/@react-spectrum/s2/src/Modal.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ interface ModalProps extends ModalOverlayProps {
2424
*
2525
* @default 'M'
2626
*/
27-
size?: 'S' | 'M' | 'L' | 'fullscreen' | 'fullscreenTakeover'
27+
size?: 'S' | 'M' | 'L' | 'XL' | 'fullscreen' | 'fullscreenTakeover'
2828
}
2929

3030
const modalOverlayStyles = style({
@@ -103,6 +103,7 @@ export const Modal = forwardRef(function Modal(props: ModalProps, ref: DOMRef<HT
103103
S: 400,
104104
M: 480,
105105
L: 640,
106+
XL: 960,
106107
fullscreen: 'calc(100% - 40px)',
107108
fullscreenTakeover: 'full'
108109
}

0 commit comments

Comments
 (0)