Creates a screen reader-accessible description of the canvas.
The first parameter, text, is the description of the canvas.
The second parameter, display, is optional and can be LABEL or FALLBACK. The third parameter, lang, is optional and sets the language of the description for screen readers. However, if only the optional 'lang' parameter is passed, it will be treated as the second optional parameter and the default option 'FALLBACK' will be used as the display.
Read Writing accessible canvas descriptions to learn more about making sketches accessible.
Examples
Syntax
describe(text, [display], [lang])
describe(text, [lang])
Parameters
text
String: description of the canvas.
display
FALLBACK|LABEL: either LABEL or FALLBACK.
lang
String: valid lang attribute.
Notice any errors or typos? Please let us know. Please feel free to edit src/accessibility/describe.js and open a pull request!