focus container on page load#116
Conversation
|
Hmm, it looks like this is failing the tests because it will change the focus anytime Is there a way to do this without JavaScript? If not, maybe the most practical thing is to put the |
|
Oh, I see. I'll look into that. |
|
Another option: I just added a change to I may be best to do this in |
|
Thanks for the lead on this. Now, I'll try to make this work! |
|
That's odd; the code looks correct to me but some tests are failing. I'll look into this when I get a chance! |
|
I tried to reproduce those failing tests locally, and it worked (it produced the expected result). So, I'm kinda lost on this one. |
|
Hmmm, I can reproduce using Chrome on Mac with the command: Oddly though I can't reproduce manually when using Chrome. It seems there may be some timing issue in a11y-dialog that causes it to think the previous focused element was |
|
^ I couldn't push to your branch for some reason, here's my attempted fix |
|
Thank you for the support @nolanlawson! |
On page load, the focus is set the main content area instead of on the nav bar.
This fixes (#99).