mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[react-aria-modal] Added missing conditional for underlayColor (#42356)
This commit is contained in:
parent
81d00a20fc
commit
f5e307c0da
3
types/react-aria-modal/index.d.ts
vendored
3
types/react-aria-modal/index.d.ts
vendored
@ -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.
|
||||
|
||||
@ -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
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user