-
Notifications
You must be signed in to change notification settings - Fork 8
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
Set pdomOrder for pdomPlayAreaNode and pdomControlAreaNode #291
Comments
Here's the current pdomOrder: For the Macro screen: screenViewRootNode.pdomOrder = [
pHMeterNode,
soluteComboBox,
dropperNode,
waterFaucetNode,
drainFaucetNode,
resetAllButton
]; For the Micro screen: screenViewRootNode.pdomOrder = [
pHAccordionBox,
soluteComboBox,
dropperNode,
waterFaucetNode,
drainFaucetNode,
beakerControlPanel,
graphNode,
resetAllButton
]; For the My Solution screen: screenViewRootNode.pdomOrder = [
pHAccordionBox,
beakerControlPanel,
graphNode,
resetAllButton
]; |
Instead of setting // Play Area focus order
this.pdomPlayAreaNode.pdomOrder = [
pHAccordionBox,
beakerControlPanel,
graphNode,
resetAllButton
];
// Control Area focus order
this.pdomControlAreaNode.pdomOrder = [
//TODO https://github.com/phetsims/ph-scale/issues/291
]; |
@arouinfar and I have paused work on this issue, because we discovered that the description plugin is setting pdomOrder, and breaks if the sim code sets pdomOrder. In MacroScreenView.ts, a guard was added around setting pdomOrder in 420ac61, because it apparently conflicts with the description plugin: if ( !phet.chipper.queryParameters.supportsDescriptionPlugin ) {
// Play Area focus order
this.pdomPlayAreaNode.pdomOrder = [
...
];
// Control Area focus order
this.pdomControlAreaNode.pdomOrder = [
...
];
} And in ph-scale-basics-description-logic.sh, the plugin is setting the pdomOrder for /*********************************************
* PDOM Order
*********************************************/
// Play Area
context.nodeSet( macroScreenView.pdomPlayAreaNode, 'pdomOrder', [
beakerNode,
phMeterHeading,
controlsHeading,
soluteComboBox,
dropperNodeButton,
phMeterProbeNode,
waterFaucetNode,
drainFaucetNode
] );
// Control Area
context.nodeSet( macroScreenView.pdomControlAreaNode, 'pdomOrder', [
resetAllButtonNode
] ); @jessegreenberg @jonathanolson Questions related to pdomOrder and the description plugin:
|
At 10/10/24 iteration planning meeting, this work was put on hold. |
Related to the description tool prototype...
Another thing that probably needs to be addressed in ph-scale/ph-scale-basics is pdomOrder. We are not currently setting pdomOrder for the play area and control area (pdomPlayAreaNode and pdomControlAreaNode respectively). We’re still using the old-style approach of setting pdomOrder on a single “root node” (
screenViewRootNode
) that’s a child of the ScreenView.@arouinfar please let me know how you’d like things allocated to play area vs control area.
The text was updated successfully, but these errors were encountered: