-
Notifications
You must be signed in to change notification settings - Fork 29
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
Field guide focus bug #651
Comments
I've looked into this some more. It's not a Grommet bug. We're preventing default behaviour on a link, which means we need to then create the link behaviour ourselves, including the change in focus on click. Lines 41 to 45 in 9e5e29e
When I click a link in the field guide item menu, the link retains focus after the content changes and I have to hit Tab before I can interact with the newly opened item content. This is easiest to see if you turn on VoiceOver (cmd-F5) so that the active element has a black border. Here's some random thoughts I had about fixing this, and improving the markup of the field guide:
It also occurred to me that what we're trying to build here, in JavaScript, is a simple browser for a set of pages so maybe, longer term, the better solution is to open the field guide in a new browser window and let the browser do all this work for us, rather than trying to code it ourselves. |
@eatyourgreens or could we revert back to using a button? |
You'll still have to code that button to behave like a link, plus maybe add a role to it so that it's announced as a link. |
I'll try a few things out here. I think we'll have to fake it regardless. The classifier is meant to be able to be dropped in into an app or be stand alone if necessary. I don't think the classifier should be doing actual browser navigation? |
That's why I'm thinking the field guide should maybe be a document that opens in a new window, so we can just link to the project field guide from the classifier. |
We could use fragment identifiers to navigate the Field Guide, similar to how we’re using them for the Sign In and Register modals. At the moment, they’re being ignored because of the |
#637 is fairly large now, could that PR be merged and this issue be addressed in a refactor? |
I can't replicate this bug anymore. |
Package
Feature or Issue Description
Comment from #637
The text was updated successfully, but these errors were encountered: