-
Notifications
You must be signed in to change notification settings - Fork 129
Make sure hamburger menu is accessible by keyboard navigation #14
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
Conversation
|
Thank you so much for your pull request, Katie. I'll have a look at this in the next day or two and get back to you. The keyboard navigation issue is a big problem, and I really appreciate your concern about it. |
|
Hi again, Katie. This looks like a good start. I’ve found a few issues that need to be cleared up, and a few while-we’re-at-it enhancements. Let me know if you’re interested in running with any of these; otherwise I will fork your branch and incorporate your work before merging it fully into Ed’s
For my own part, I’m going to do some research and see if anyone has come up with a way to make a |
|
Thanks for taking a look @karlstolley! I'd be happy to keep going with these changes, if you don't mind it taking me a few days. Some thoughts on your points:
Oh good point, I hadn't thought about how the menu could work without a button. That's clever using a label and checkbox instead.
Good to know, I'll experiment and see if I can get the styling and tab navigation to work outside of the header. The reason I moved the button was because I was finding that some of it's positioning styling (I believe
Good point! I'll add those
Whoops, I've been spoiled by Babel. I can make that a regular function.
Ah gotcha, that makes a lot of sense I had a feeling I was missing why the event was on the document and checking the target. I can re-add that functionality.
I had thought about that as well, but didn't want to wade too far into CSS changes since I didn't feel like I had a good idea of Ed's CSS system in my head. If you don't mind, I think I will skip this enhancement :) Also, I might be good to keep the checkbox. I like the idea of there still being some interactivity even without JavaScript. |
|
@karlstolley I made most of your requested changes, if you don't mind taking another look. I also added a small amount of focus state styling to the menu toggle since I got tired of straining to see if it was focused in Firefox. I can take it out though, if it's something that might interfere with the Ed theme. A couple of follow things/questions I wanted to point out:
|
|
@ktbee awesome. Give me a few days to have a look. Have you pushed all of your commits for this work? I just see the one, |
|
@karlstolley whoops sorry to not clarify earlier, I have indeed pushed all of my changes up! There are two commits, |
|
@ktbee I got sidetracked this week. Just a ping to let you know I've not forgotten about your contribution. |
Using changes proposed by @ktbee in: minicomp/ed#14
Hello! Thank you for making such a lovely, clean looking theme.
I am currently using Ed for my blog and noticed that I could make some improvements to the accessibility of its hamburger menu. With the current version, you can't navigate to the menu using the keyboard. If you're not familiar with this idea, I'm using tab navigation and based my changes on these sorts of guidelines.
Proposed changes in this PR:
labelelement with abuttonaria-labelandaria-expanded)transitionend).I also simplified the sidebar toggle JavaScript by a fair amount, so please let me know if I missed something in those changes. My goal was to make sure the theme still looked and behaved the same while allowing for tabbing to the menu. You can see these changes in effect on my blog:
https://blog.katiebroida.com/
Chrome has the most obvious focus highlighting out of the box, so you may want to tab through it in Chrome.
Thanks again for this theme! Looking forward to your thoughts on this.