Frontend Quizz App using HTML, CSS and Vanilla JavaScript
Design comparison
Community feedback
- @elisilkPosted about 2 months ago
Hi 👋 @aouintihouari,
Congrats on a great solution. 👏 I love that you implemented the light/dark theme toggle switch, that your design layout is nicely responsive. Overall, the solution looks and functions very similar to the design. Nice job!
If you are up for diving in just a little further 🤿, I'd suggest taking the keyboard accessibility one step further by making your buttons accessible. Currently, on your
game-screen
, the answer choices are nicely accessible by hitting thetab
key to navigate between the choices and theenter/return
key to select one, which is great. Building on those great choices, I think it would be good to consider switching your button element from a<div class="btn">
to a<button class="btn">
element. The<button>
element has standard keyboard interactivity built into it (that a regular<div>
doesn't have). That way when a user is tabbing through the answer choices and selects one, they can then continue to tab along to the "Submit Answer" button, and then hit the return/enter key to submit their choice. Of course, you could make similar changes to the "Next Question" button, the "Play Again" button, and the start menu choices as well if you were up for that.Anyway, just an idea to consider if you are thinking about improving on this solution. 🤔
Happy coding. 💻
Eli
Marked as helpful1@aouintihouariPosted about 2 months ago@elisilk Thank you so much for your review and for taking the time and effort to read my code. I appreciate it.
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord