[react-aria-modal] Added missing conditional for underlayColor (#42356)

This commit is contained in:
Corbin Crutchley 2020-02-25 16:29:13 -08:00 committed by GitHub
parent 81d00a20fc
commit f5e307c0da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

View File

@ -3,6 +3,7 @@
// Definitions by: gabycperezdias <https://github.com/gabycperezdias>
// forabi <https://github.com/forabi>
// dkrk <https://github.com/grgr-dkrk>
// Corbin Crutchley <https://github.com/crutchcorn>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
@ -142,7 +143,7 @@ export interface AriaModalProps {
*
* Default: rgba(0,0,0,0.5)
*/
underlayColor?: string;
underlayColor?: string | false;
/**
* If `true`, the modal's contents will be vertically (as well as horizontally) centered.

View File

@ -21,3 +21,18 @@ render(
</DisplacedModal>,
appContainer
);
render(
<AriaModal
onExit={() => {}}
alert={true}
focusDialog={true}
titleText='A top modal'
underlayClickExits={false}
verticallyCenter={true}
underlayColor={false}
>
<div>Hello</div>
</AriaModal>,
appContainer
);