You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[flow] add configurability for user-visible strings in the DOM
Summary:
Adds user-visible strings as an overridable type to allow for opaque-ly typed translation systems
Changelog: [internal]
Reviewed By: SamChou19815
Differential Revision: D69559371
fbshipit-source-id: 3231f94475311bd8de904bda33136b8edd31112a
* Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
383
395
* @see aria-colindex @see aria-rowspan.
@@ -406,7 +418,7 @@ type ReactDOM$AriaAttributes = {|
406
418
* Defines a string value that describes or annotates the current element.
407
419
* @see related aria-describedby.
408
420
*/
409
-
'aria-description'?: ?string,
421
+
'aria-description'?: ?ReactDOM$UserVisibleString,
410
422
/**
411
423
* Identifies the element that provides a detailed, extended description for the object.
412
424
* @see aria-describedby.
@@ -471,7 +483,7 @@ type ReactDOM$AriaAttributes = {|
471
483
* Defines a string value that labels the current element.
472
484
* @see aria-labelledby.
473
485
*/
474
-
'aria-label'?: ?string,
486
+
'aria-label'?: ?ReactDOM$UserVisibleString,
475
487
/**
476
488
* Identifies the element (or elements) that labels the current element.
477
489
* @see aria-describedby.
@@ -499,7 +511,7 @@ type ReactDOM$AriaAttributes = {|
499
511
* Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
500
512
* A hint could be a sample value or a brief description of the expected format.
501
513
*/
502
-
'aria-placeholder'?: ?string,
514
+
'aria-placeholder'?: ?ReactDOM$UserVisibleString,
503
515
/**
504
516
* Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
505
517
* @see aria-setsize.
@@ -534,7 +546,7 @@ type ReactDOM$AriaAttributes = {|
534
546
/** Indicates that user input is required on the element before a form may be submitted. */
535
547
'aria-required'?: ?ReactDOM$BooleanishString,
536
548
/** Defines a human-readable, author-localized description for the role of an element. */
0 commit comments