Closed pixelzoom closed 3 years ago
From https://github.com/phetsims/area-model-common/issues/139#issuecomment-387182176...
Instead of relying on developers to manually group a11y-related options, consider bundling (nesting) them under options.a11y, e.g.:
options.a11y
options = _.extends( { fill: ‘white’, stroke: ‘black’, … phetio: { tandem: tandem ... } … a11y: { tagName: 'p', descriptionContent: 'blah blah blah', … } }, options );
I recommend we conclude discussion in https://github.com/phetsims/area-model-common/issues/139 before proceeding here.
We have decided to go with code comments instead of nested options. CLosing
From https://github.com/phetsims/area-model-common/issues/139#issuecomment-387182176...
Instead of relying on developers to manually group a11y-related options, consider bundling (nesting) them under
options.a11y
, e.g.: