Closed zepumph closed 7 years ago
Also, yesterday we talked about only creating these items (which means registering these tandems too) if accessibility is enabled. Otherwise all of these needless tandems will be created even if accessibility isn't enabled, and there is no keyboard nav button.
In the above commit I made sure that all icons and descriptions have a tandem and that the tandem names follow convention and that icon and description tandem names are similar so that they are linked as suggested in https://github.com/phetsims/resistance-in-a-wire/issues/103#issue-261483987.
To address https://github.com/phetsims/resistance-in-a-wire/issues/103#issuecomment-333170089, a11y is now enabled by default in this sim since keyboard navigation is nearly ready for deployment.
I tested in instance-proxies and I think everything is working well. @zepumph could you please review?
Looks really nice. Thanks for doing that. I'm not sure that we will need these layout tandems ever.
resistanceInAWire.keyboardHelpContent.sliderIconsVBox
resistanceInAWire.keyboardHelpContent.sliderDescriptionsVBox
But heck, I'm not really even sure that any of this needs to be instrumented. For now I would say it is good to go, we can always update it later. Thank you!
I noticed that many tandems were the same as other components, so RIAW was broken. I fixed the duplications by removing unneeded layout tandems, but there is still some work to be done. (1) Not all texts/icons have tandems, and (2) not all tandems are named appropriately.
When I make all instrumented items on the panel invisible, this is what I still see in instance proxies. This makes me think that not every text/icon is instrumented.
PhET-iO tries to follow the convention that the tandem name is the same as the variable name like the following snippets:
Using the above convention this snippet is correct, but not ideal because these two items should have names that link them a bit better, either both with "Plus" or neither.
@jessegreenberg said he would look into this. Thanks!