-
Notifications
You must be signed in to change notification settings - Fork 6
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
Scientific Notation checkable when Forces Values is not checked #207
Comments
@zepumph, there are SImple Context Responses in the design doc for these scenarios here in the design doc: |
@zepumph, the responses are all correctly implemented, it is is just the fact that the Scientific Notation checkbox is enabled (checkable and uncheckable) when Force Values is not checked. It should be disabaled in when Force Values is unchecked. I would try the HTML5 From https://caniuse.com/#search=disabled, the HTML5 attribute looks like a safe bet. |
Moving to gravity force lab regular |
@terracoda this was actually a purposeful design decision implemented for PhET-iO. The reasoning is because it makes for an easier api for customization. Can you outline the reasoning for wanting this for Interactive Descriptions. Perhaps we will need to rope in @arouinfar and @kathy-phet to this issue too for comment. |
@zepumph, interesting about changing to simplify for PhET-iO. I understand the challenge. However, @arouinfar and I had already discussed this at the beginning of the design process, and thougtht that we came up with a nice solution. I wish I had been looped in for the PhET-iO meeting ;-) Our reasoning (from memory), essentially, it makes no sense to be able to turn on Scientific Notation if the Forces Values checkbox is not already checked. Scientific Notation is a second numerical representation of the Force Values. If Force Values are not shown (or described) then what does it mean to be able to turn on Scientific Notation - nothing. There is no numerical representation to convert to scientific notation - nothing happens visually when I check the Scientific Notation checkbox when Force Values is not checked. The only thing that happens is that a context response fires saying "Forces now shown in newtons with Scientific Notation" - but that's not true! @arouinfar, are you aware of this change? |
@arouinfar, when you get a chance please share your thoughts. Let me know if you think this warrants some time in a design meeting soon. |
Unfortunately, I think I was the only one present for both the PhET-iO and a11y conversations around this particular issue, and they were separated enough in time that I wasn't thinking about both. My apologies. In general, I think disabling the checkbox is the cleaner option. However, we were willing to accept the slightly odd UX of not disabling the checkbox for the simplification of the api for PhET-iO, but this seems extremely problematic for the PDOM. I cannot remember if disabling the checkbox was slightly inconvenient/messy for PhET-iO or truly problematic in the same way the reverse is true for the PDOM. @zepumph can you comment on this (or point us to the appropriate issue)? |
I think it was problematic for PhET-iO - at least given the structure of the code at the time. I think it would be best to just schedule a short design meeting with @terracoda and @zepumph to see what options we can come up with for solving the puzzle. |
It is also a relatively awkward and tricky issue for the PDOM, so thankful for the design time. |
I too will be happy for design time. To try to summarize, it seems challenging for the PDOM because we have an alert when the scientific checkbox is toggled that states that the force vectors are now displayed in a different way. This is confusing if there aren't even any force vectors displayed. It was problematic for PhET-iO because the "enabledProperty" for the scientific notation checkbox was the Property that controlled the force values checkbox. Because of the way this was set up. There was no way to set the scientific notation checkbox to enabled:false through the PhET-iO api without the user just able to toggle it back to enabled by clicking on the force values checkbox again. I think that the solution is to revert to the previous solution, where the scientific notation box toggles enabled, and add a Property only accessible via PhET-iO called |
Today in design meeting we thought about how these two checkboxes are actual representing 3 states. What if we used a radio button group instead?
This will solve PhET-iO because then we won't have dependent Property values. For @arouinfar will do a mockup and get back to me for implementation. |
I drafted some descriptions changes in a table here: |
Oops. I assigned @terracoda without seeing the above comment because the descriptions will also need work. Please unassign if you feel like they are ready. |
Post-meeting slack conversation:
|
What was happening here is that actually the mass controls are being scaled down. I changed it so none of the panel strokes were scaled, ergo I made them all heavy but consistent. This felt like a better change than trying to map it the other way. If you think it is too heavy, then we can change all of the line widths.
@terracoda does this sound like an appropriate change in terms of interactive description content? I can't think of any issues with it. |
@zepumph, thanks for asking.
I don't think any of this has any pedagogical ramifications. |
…instrument the force values text, phetsims/gravity-force-lab#207
…instrument the force values text, #207
I did a bunch more work here. Please review the following changes:
Assigning to @kathy-phet and @arouinfar for review. |
@zepumph Coulomb's Law is looking good, but the gap between the checkbox and "Constant Size" looks a bit large in GFL. Can you left-align "Constant Size" with the strings above it? Things also look good in studio. The only thing that looks a bit odd to me is the |
I decreased the spacing from 10 to 4, and I feel like things are even now See #230 for tandem naming. @arouinfar are we ready to close here? |
Looks great @zepumph! |
I thought we solved this issue already, however, I can't find the original issue.
Issue: I can check Scientific Notation checkbox when Force Values is not checked. This should not be possible because no force values are showing.
I am pretty sure there is artwork demonstrating these the greyed-out sates.
The text was updated successfully, but these errors were encountered: