phetsims / scenery-phet

Reusable components based on Scenery that are specific to PhET simulations.
MIT License
8 stars 6 forks source link

Keyboard Shortcuts dialog: Generalizable solution when the dialog gets overloaded #856

Open terracoda opened 6 months ago

terracoda commented 6 months ago

From https://github.com/phetsims/projectile-data-lab/issues/257#issuecomment-2032376142

While it has been the practice and is generally desirable to provide instructions for all non-Basic Actions, some sims present serious real estate challenges to achieve this goal.

Example sims with lots of information in their Keyboard Shortcuts dialogs:

For both these sims, there is a combobox interaction on each screen. We opted to only provide instructions for the combobox in Screen 1's dialog because there wasn't room in subsequent Screen dialogs.

This solution is not ideal and is not scalable when sims have even more controls and no more room in the dialog.

https://github.com/phetsims/projectile-data-lab/issues/257#issuecomment-2032376142 mentioned 2 potential general solutions to provide more room: Option 1: Implement Tabs

**Option 2: Central Resource for General/Basic Actions

This is a general design issue.

terracoda commented 6 months ago

Of course, a third solution is to try to keep the number of different types of controls on a sim screen to a minimum.

jessegreenberg commented 6 months ago

PhET does not have this, but another option could be to create a "scrollable" UI component for overlfowing content like this.

kathy-phet commented 4 months ago

Related to https://github.com/phetsims/scenery-phet/issues/854