We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4163db8 commit 5bc04b6Copy full SHA for 5bc04b6
1 file changed
packages/blockly/core/field.ts
@@ -329,6 +329,11 @@ export abstract class Field<T = any>
329
* entirely when there may be a better contextual placeholder to use, instead,
330
* specific to the field.
331
*
332
+ * For example, a text input field may have a value of null when empty. To
333
+ * avoid hiding this field from screen reader, implementations should ensure
334
+ * that if the value is null, this function would return an appropriate,
335
+ * localized value such as "empty text".
336
+ *
337
* Implementations are responsible for, and encouraged to, return a localized
338
* version of the ARIA representation of the field's value.
339
0 commit comments