mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add null as valid value for bodyOpenClassName, htmlOpenClassName & role. (#39204)
This commit is contained in:
parent
6b4b44df8e
commit
d0bcf9e804
14
types/react-modal/index.d.ts
vendored
14
types/react-modal/index.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
// Type definitions for react-modal 3.8
|
||||
// Type definitions for react-modal 3.10
|
||||
// Project: https://github.com/reactjs/react-modal
|
||||
// Definitions by: Rajab Shakirov <https://github.com/radziksh>,
|
||||
// Drew Noakes <https://github.com/drewnoakes>,
|
||||
@ -50,11 +50,11 @@ declare namespace ReactModal {
|
||||
/* String className to be applied to the portal. Defaults to "ReactModalPortal". */
|
||||
portalClassName?: string;
|
||||
|
||||
/* String className to be applied to the document.body. */
|
||||
bodyOpenClassName?: string;
|
||||
/* String className to be applied to the document.body (must be a constant string). When set to null it doesn't add any class to document.body. */
|
||||
bodyOpenClassName?: string | null;
|
||||
|
||||
/* String className to be applied to the document.html. */
|
||||
htmlOpenClassName?: string;
|
||||
/* String className to be applied to the document.html (must be a constant string). Defaults to null. */
|
||||
htmlOpenClassName?: string | null;
|
||||
|
||||
/* String or object className to be applied to the modal content. */
|
||||
className?: string | Classes;
|
||||
@ -101,8 +101,8 @@ declare namespace ReactModal {
|
||||
/* Additional data attributes to be applied to to the modal content in the form of "data-*" */
|
||||
data?: any;
|
||||
|
||||
/* String indicating the role of the modal, allowing the 'dialog' role to be applied if desired. */
|
||||
role?: string;
|
||||
/* String indicating the role of the modal, allowing the 'dialog' role to be applied if desired. Defaults to "dialog". */
|
||||
role?: string | null;
|
||||
|
||||
/* String indicating how the content container should be announced to screenreaders. */
|
||||
contentLabel?: string;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user