-
Notifications
You must be signed in to change notification settings - Fork 12
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
Dialogs should focus the close button by default when shown #719
Comments
…ter for the node that gets focus when opening the Dialog, see #719
This was done in the above commit. In some spot checking I that Dialogs being opened from the PhET menu had focus going to the second interactive element. This is because of This was fixed in 3440aab, which also gets rid of a usage of @zepumph can you please review this so far? If this direction looks OK we can remove |
I also considered moving this @zepumph do you think this should be moved to popupable? |
I think that popupable is the place for this. I would highly recommend again using Good work with removing |
Thanks @zepumph, Ill move these options into Popupable and set the close button as the default in Dialog. |
I am having a hard time putting this in Popupable because of when Dialog calls |
What about instead of putting it in the listener, you put it directly in show/hide, after you set the Property? Would that work? |
Raising priority to high, since this is blocking the next Fourier RC, as noted in phetsims/fourier-making-waves#194 (comment). |
…how'/'hide' terminology, see #719
Yes @zepumph, thanks! That worked really well. These are now in Popupable. I renamed the options because Popupable uses |
Wait, |
To clarify, @jessegreenberg mentioned that the current traversal order was more optimal for screen readers, so I am fine with leaving this as-is, as I said in phetsims/vegas#96 (comment). Dialogs can be closed with the esc hotkey, so users don't need to tab to the close button, anyway. |
Summary of Zoom discussion with @arouinfar about how this issue affects the next Fourier RC, whether it's blocking, etc. From phetsims/fourier-making-waves#194 (comment):
If we can unblock this by Thursday 10/7 morning, I should be able to publish the next Fourier RC. Otherwise we'll be waiting until Wednesday 10/13. |
@jessegreenberg your commits are aligned well with what we talked about. Good work here and in #722 |
Thanks @zepumph. Here are the commits to cherry-pick, in order. I tried cherry-picking to test branches off of fourier 1.0 SHAs and saw things working OK. Let me know if you encounter a problem @pixelzoom. sun: joist: |
…ter for the node that gets focus when opening the Dialog, see #719
Thanks @jessegreenberg and @zepumph. Cherry-picks listed in #719 (comment) have been completed for Fourier, no problems experienced, and a test build seems to be working as expected. |
I'm not sure if there's more to do here, so back to @jessegreenberg. |
We are ready to close this. |
From phetsims/fourier-making-waves#194. Focus behavior when opening a dialog is inconsistent because you currently need to call
focusCloseButton
explicitly after callingshow()
.This is because we used to only focus the button when the dialog was opened from alternative input. Calling
focus
would immediately show the focus highlight and we did not want to do that for mouse and touch input. The general pattern wasThat is not necessary anymore since highlights have been improved to only be shown when the sim receives some form of alternative input.
Instead of a proliferation of
focusCloseButton
calls, lets make focusing the close button the default behavior for Dialog.The text was updated successfully, but these errors were encountered: