-
Notifications
You must be signed in to change notification settings - Fork 4
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
Reimplement ChallengeComboBoxItem #484
Comments
In phetsims/sun#768 (comment), @zepumph said:
|
… easier (for me) to understand, #484
Since this is a significant change, I published 1.2.0-dev.24 as a baseline before proceeding. |
Done in the above commit. I noticed that there was a lot of duplication of the ratio constants 1/2, 1/3, 3/4 in ChallengeRatioComboBoxNode. There was an existing Map that mapped ratio to @zepumph please review. |
Looks amazing (obviously). Thanks for doing that refactor. I really appreciate. The code is much better. |
In phetsims/sun#768, ComboBoxItem is being converted from
class
totype
.From phetsims/sun#768 (comment):
Hmmm... This makes converting ComboBoxItem to a
type
a bit more complicated. In ratio-and-proportion:... and ChallengeComboBoxItem does some work that a
type
cannot.ChallengeComboBoxItem is a bad design. The responsibility for setting the background color of the sim should not be in the item. The item should select a value, and setting the background color based on the value should be handled elsewhere. @zepumph may I change this?
What I said about ChallengeComboBoxItem is true in general. Items should not have responsibilities like this.
The text was updated successfully, but these errors were encountered: