chore: add example to JSDoc for getAriaValue (#9692)

This commit is contained in:
Michael Harvey
2026-04-08 16:12:00 -04:00
committed by GitHub
parent 4163db8505
commit 5bc04b6435
+5
View File
@@ -329,6 +329,11 @@ export abstract class Field<T = any>
* entirely when there may be a better contextual placeholder to use, instead,
* specific to the field.
*
* For example, a text input field may have a value of null when empty. To
* avoid hiding this field from screen reader, implementations should ensure
* that if the value is null, this function would return an appropriate,
* localized value such as "empty text".
*
* Implementations are responsible for, and encouraged to, return a localized
* version of the ARIA representation of the field's value.
*