-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build out support for high-level ParallelDOM APIs in common-code UI components. #901
Comments
Also for consideration... Until support is implemented, exclude All common-code components that have ParallelDOM as an ancestor currently include |
Just adding a comment that it would be wonderful to have any default descriptions percolate to our live demos of sim components. I was talking to @jessegreenberg about this. |
Related to https://github.com/phetsims/special-ops/issues/269 ...
This issue is relevant for sun, scenery-phet, and any other common-code UI components.
I discussed with @jessegreenberg, and ParallelDOM has two categories of API: low-level and high-level. From ParallelDOM.ts (where they are for some reason called "functions" when they are in fact options):
The intention/goal is that sim-specific code should be using the high-level API, while common-code UI components should provide the high-level API and convert that to the low-level API. But in practice:
Towards the goal of making accessible names and help text part of the standard feature set, PhET will likely want to start by building out support for
accessibleName
andhelpText
. (Other description-related options should be kept in mind, but may be prioritized differently.) Related work includes:accessibleName
andhelpText
options in common-code UI components.innerContent
should not be settable by sublcasses of ButtonNode, because it is responsible for propagatingaccessibleName
to the appropriate low-level options.accessibleName
andhelpText
. For example, instead of every sim addingaccessibleName: 'Erase'
to EraseButton, that should be the default, which can be overridden if needed.I will create GitHub issues for specific examples that were encountered while adding accessible name and help text to MOTHA for phetsims/models-of-the-hydrogen-atom#67. Those issues will be linked to this issue, but should not be considered a complete list of what needs to be built out.
The text was updated successfully, but these errors were encountered: