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

Focus should be at top when returning to home screen #695

Closed
zepumph opened this issue Mar 2, 2021 · 5 comments
Closed

Focus should be at top when returning to home screen #695

zepumph opened this issue Mar 2, 2021 · 5 comments

Comments

@zepumph
Copy link
Member

zepumph commented Mar 2, 2021

@jessegreenberg @terracoda, I believe we have discussed this before.

@terracoda thinks this should match the current behavior for sim screens (focus the h1), and not focusing to the highlighted screen button. Basically we should be able to just get rid of focusHighlightedScreenButton.

Tagging this for phetsims/ratio-and-proportion#363.

@zepumph zepumph self-assigned this Mar 2, 2021
@zepumph
Copy link
Member Author

zepumph commented Jul 19, 2021

@jessegreenberg, I'm not sure how we accomplish this, or even if we can. Is this needed for Greenhouse effect?

@zepumph zepumph assigned jessegreenberg and unassigned zepumph Jul 19, 2021
@terracoda
Copy link
Contributor

terracoda commented Jul 19, 2021

Actually, a better, more natural user experience is for focus to go the button of the source screen.
We are talking about a re-visit to the Home screen, right?

I thought I had this plan mapped for RaP? There might be an interaction design pattern in Binder?? - not sure.

  1. Focus is at top of Home Screen when the sim loads for the first time.
  2. Focus is at the top of Sim Screen when a screen is selected from the Home page - this was requested by blind users in interviews.
  3. When returning to the Home Screen from a Sim Screen, the Sim Screen button of the source Sim Screen receives focus. There's no need to read from the top in this case. If the user wants to do that they can use their preferred screen reader navigation method.
  4. Note that we have not done many interviews on multi-screen sims yet. I think right now, when swapping between Sim Screens in the navbar, focus is just on the Sim Screen buttons as they are selected. I think the user in this case needs to jump to the top of the Sim with their preferred screen reader navigation method.

Note having a 4-screen sim like GHE in development will give us an opportunity to investigate the sim screen interactions further. We have not done an exhaustive investigation of the Sim Screen interactions.

Adding - At least I don't think I have done and exhaustive study, and I certainly haven't interviewed anyone on a sim that has more than 2 screens.

@jessegreenberg
Copy link
Contributor

Discussed with @terracoda, focus should return to the h1 on the home screen to be consistent with other screens. Ill take a look.

@jessegreenberg
Copy link
Contributor

There is specific code in the NavigationBar that is putting focus on the home screen button.

            // only if fired from a11y
            if ( this.homeButton!.isPDOMClicking() ) {
              sim.homeScreen!.view.focusHighlightedScreenButton();
            }

It is very old (2018), predating our decision to put focus on the 'h1' of the ScreenView (2021), so I will go ahead and remove it.

jessegreenberg added a commit that referenced this issue Nov 5, 2024
…uld start at the top of the home screen like all ScreenViews, see #695
@jessegreenberg
Copy link
Contributor

This was pushed to main, closing.

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

No branches or pull requests

5 participants