mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
Add aria-modal attribute to react-modal types (#37980)
This commit is contained in:
Vendored
+4
@@ -32,8 +32,12 @@ declare namespace ReactModal {
|
||||
}
|
||||
|
||||
interface Aria {
|
||||
/** Defines a string value that labels the current element. */
|
||||
labelledby?: string;
|
||||
/** Identifies the element (or elements) that describes the object. */
|
||||
describedby?: string;
|
||||
/** Indicates whether an element is modal when displayed. */
|
||||
modal?: boolean | 'false' | 'true';
|
||||
}
|
||||
|
||||
interface Props {
|
||||
|
||||
@@ -50,7 +50,8 @@ class ExampleOfUsingReactModal extends React.Component {
|
||||
};
|
||||
const customAriaVariables = {
|
||||
labelledby: 'labelledby',
|
||||
describedby: 'describedby'
|
||||
describedby: 'describedby',
|
||||
modal: true,
|
||||
};
|
||||
const customDataVariables = {
|
||||
dataOne: 'one',
|
||||
|
||||
Reference in New Issue
Block a user