mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Update aria-relevant type. (#47012)
Update the aria-relevant type to include "additions removals" as the existing type is inaccurate. The actual type is a space delimited list of keywords: "additions", "removals", "text", or "all".
This commit is contained in:
parent
e18788ab97
commit
23a1fd68ce
2
types/react/index.d.ts
vendored
2
types/react/index.d.ts
vendored
@ -1688,7 +1688,7 @@ declare namespace React {
|
||||
* Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
|
||||
* @see aria-atomic.
|
||||
*/
|
||||
'aria-relevant'?: 'additions' | 'additions text' | 'all' | 'removals' | 'text';
|
||||
'aria-relevant'?: 'additions' | 'additions removals' | 'additions text' | 'all' | 'removals' | 'removals additions' | 'removals text' | 'text' | 'text additions' | 'text removals';
|
||||
/** Indicates that user input is required on the element before a form may be submitted. */
|
||||
'aria-required'?: boolean | 'false' | 'true';
|
||||
/** Defines a human-readable, author-localized description for the role of an element. */
|
||||
|
||||
@ -501,7 +501,8 @@ const htmlAttr: React.HTMLProps<HTMLElement> = {
|
||||
'aria-atomic': false,
|
||||
'aria-checked': 'true',
|
||||
'aria-colcount': 7,
|
||||
'aria-label': 'test'
|
||||
'aria-label': 'test',
|
||||
'aria-relevant': 'additions removals'
|
||||
};
|
||||
DOM.div(htmlAttr);
|
||||
DOM.span(htmlAttr);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user