Notifications page using ReactJS and Open Props + (Dark/Light Mode)

Solution retrospective
Hi there! 👋 This is my solution for the challenge. 🚀
- I have added a Light and Dark Mode feature and a theme switch component.
- To represent the data, I created an array of objects that were then mapped to individual
<card>
components.
Built with:
- React JS
- CSS Modules
- Open Props
- Vite
Any suggestions on how I can improve are welcome!
Please log in to post a comment
Log in with GitHubCommunity feedback
- @katjadanilova
Hi!
Your solution looks really good. Light and dark mode switch is a very nice additional touch to the whole design, and your dark mode colours look neat!
Visually, I haven't noticed any problems, and my eye just caught some issues in the accessibility report. Here is an idea:
- I believe your
aria-live="polite"
is the one that gives the first error in the report. Here is an article about using this property: https://bitsofco.de/using-aria-live/, and I am not sure you have a good use case for it. It might be that you rather want to have a dynamic value foraria-label
that would say "Switch to light theme" or "Switch to dark theme" respectively.
Marked as helpful - I believe your
- @mobalti
Hi @katjadanilova, I would like to update you on my progress. Upon further investigation, I realized that instead of updating the aria-label attribute when the button was clicked, I had mistakenly modified the aria-live attribute value. I have now resolved the issue and the app is fully functional for screen readers. I invite you to test it.
I am truly grateful for your assistance, and I would also like to express my appreciation to the Frontend mentor team for providing me this opportunity.
Join 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