Skip to content
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

Keyboard Shortcuts Dialog adjustments & additions #118

Closed
terracoda opened this issue Apr 15, 2019 · 8 comments
Closed

Keyboard Shortcuts Dialog adjustments & additions #118

terracoda opened this issue Apr 15, 2019 · 8 comments
Assignees

Comments

@terracoda
Copy link

terracoda commented Apr 15, 2019

There are no small steps in this sim, but there are in GFL Regular. If it is possible and not too tedious due to shared resources between the 2 sims (3 if you include Coulomb's Law):

  • Please remove the line about small steps under Change Mass (but only if this is not a big pain)

Also, this sim and GFL Regular have checkboxes, so

  • Under Basic Actions, please add the instructions for checkboxes after the item already there for buttons
    • The visual representation would be just like the button item, but with different words. The square brackets represent the Space key icon.:
      • "Toggle checkboxes [SPACE]"
    • The a11y text for the checkbox item is:
      • "Toggle checkboxes with Space key."

Edited: added only if line.

@terracoda
Copy link
Author

@zepumph, do you need a visual for this?

@zepumph
Copy link
Member

zepumph commented Apr 24, 2019

No visual needed, implemented both of them (as it was simple in the way it was set up). Let me know what you think

@zepumph zepumph assigned terracoda and unassigned zepumph Apr 24, 2019
zepumph added a commit to phetsims/gravity-force-lab that referenced this issue Apr 24, 2019
zepumph added a commit to phetsims/scenery-phet that referenced this issue Apr 24, 2019
@terracoda
Copy link
Author

@zepumph, sounds and looks great, but could you please put the "Toggle checkboxes" line just after the Press buttons and just before the Escape to exit dialog.

Apologies for not being explicit about the order in the original post.

@zepumph
Copy link
Member

zepumph commented Apr 30, 2019

In the above commit I reordered things, and I also refactored GeneralKeyboardHelpSection to be more explicit and easy to tell what the final order is. I also converted to es6. @terracoda please review, and also note that all the work done for this is in common code, and that this is now an option anywhere (I think you already knew that).

@zepumph zepumph assigned terracoda and unassigned zepumph Apr 30, 2019
zepumph added a commit to phetsims/scenery-phet that referenced this issue Apr 30, 2019
@terracoda
Copy link
Author

@zepumph, the content looks and sounds great.

I think there might be an extra aria-labelledby because I am hearing an end of group announcement after the starting heading block of the dialog.

I have heard this before, and I just looked in the code to see why...
Screen Shot 2019-04-30 at 10 54 35 PM

I don't think we need the second aria-labelledby attribute. Where should I start an issue for a common code issue for a little tweaking of the dialog? Which repo does this common code item belong to?

@terracoda
Copy link
Author

Oh duh, I see the commit was in scenery-phet. I'll move the comment to scenery-phet.

@terracoda
Copy link
Author

@zepumph, please close this issue when phetsims/scenery-phet#494 is addressed.

@terracoda terracoda removed their assignment Apr 30, 2019
@terracoda
Copy link
Author

@zepumph, I will close this issue as it is common to all sims and any needed work will be done in phetsims/scenery-phet#494

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants