Closed marlitas closed 5 months ago
Likewise, here is a design mock-up calling for data points to render up past the title bar:
See also related issue https://github.com/phetsims/sun/issues/803
AccordionBox now supports width-sizable titleNode elements, so you could now HBox something if you want it right-aligned (note that titleAlignX would put whitespace at the right side if it's 'center' due to its design, use either other align)
@jonathanolson everything is looking great, thanks! We tried passing showTitleWhenExpanded: false,
and saw that the info button and data could go up into the title region:
We would additionally like to show the title anyways (even though it might overlap with some content), and have the title bar be pickable. This patch hard codes some of that behavior to show what we mean:
@jonathanolson what do you think? Should we add support for features like that?
Sorry for the delayed review here. The logic in https://github.com/phetsims/sun/commit/d17cdcf987697d60ccbfc13bd9ab1096c355197a look appropriate, and this has also been tested by QA with the publication of CAV. I believe this issue can be closed. Thanks!
For Center and Variability, the design calls for an info button, and dot plot renderings to be shown on top of the titleNode area when the accordion box is open.
This is currently not possible with accordion box, and results in the following:
This line of code was used to create a hacky solution:
@samreid and I feel like it would be best to remove this line and allow accordionBox to properly apply the desired layout. @jonathanolson, does this feel like something that can be part of work for https://github.com/phetsims/sun/issues/803, or is it a much separate lift?