-
Notifications
You must be signed in to change notification settings - Fork 2
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
Use VerticalCheckboxGroup instead of custom ISLCCheckboxItem #66
Comments
I think the motivation for removing VerticalCheckboxGroup in #51 was because VerticalCheckboxGroup does not currently support disabling a single checkbox in the group. |
@jessegreenberg in the above commits I added support to VerticalCheckboxGroup to support individual options passed to a single checkbox. From that it was easy enough to pass a custom enabledProperty to the scientific notation checkbox. Please review. Note that this changed the layout of the checkbox panel by a few pixels (not greatly). What do you think about this change? |
Awesome, thank you! What do you think about changing the order of options for the extend call to _.extend( {}, options.checkboxOptions, item.options, { so that the group options can be overridden by individual options? |
Great idea! I also needed to do some cleanup in terms of how we were passing enabledProperty through (mainly for phet-io related problems). @chrisklus was a great help in simplifying. His idea was to just use the |
@zepumph and @jessegreenberg, the disabling option has been working visually, but I don't think it has ever worked in the PDOM. In the screenshot you can see that the disabled check box is focusable and checked. This checkbox issue is being tracked in phetsims/gravity-force-lab#110. |
Sounds good. @terracoda see phetsims/sun#517 for the general solution. Anything else for this issue? |
Changes look great, and since the issue @terracoda mentioned is going to be tracked elsewhere I think this can be closed. |
I'm unsure why there is a custom is solution here, even after looking at #51.
It seems like we should be using VerticalCheckboxGroup, I'll take a look further. From phetsims/gravity-force-lab-basics#134
The text was updated successfully, but these errors were encountered: