Design comparison
Solution retrospective
Is there way to change css of the checkbox or any alternative way to use checkbox like feature?🧐 I wanted to show some a nested component as default (using react router) when whole page renders for first time but wasn't able to is there a way to do it?
Community feedback
- @mukwende2000Posted over 1 year ago
you should wrap everything you want to be the default in a <Router></Router> components, everything outside of it is the changeable part....
Marked as helpful0 - @mukwende2000Posted over 1 year ago
I have not understood the second part of your question, but changing the css of a checkbox is a tricky one that may be difficult to explain, i will refer you to a youtube video of kyle from webdev simplified, that might help. https://youtu.be/YyLzwR-iXtI
Marked as helpful0@deoruchiPosted over 1 year ago@mukwende2000 thankyou!!😃 for your help. And on second part I just want to know how to make the one of the nested component in react router as default .
0 - @0xabdulkhaliqPosted over 1 year ago
POINTING CURSOR ↗️:
- Looks like the component's interactive
button
elements has not a pointer, this property plays a major-role in terms of both UI & UX
- The
cursor: pointer
CSS property is important for button-like elements because it changes the cursor from the default arrow to a pointer when hovering over the element. This provides a visual cue to the user that the element is clickable and encourages interaction.
- In terms of UI/UX, using
cursor: pointer
helps to improve the usability of the interface by making it easier for users to identify interactive elements. It also helps to provide feedback to the user by indicating which elements are clickable and which are not.
- So we want to add this property to the following
button
element
.buttondelete, .deletewhole cursor: pointer; }
- Now your component's
button
has got the pointer & you learned about this property as well
1 - Looks like the component's interactive
- @0xabdulkhaliqPosted over 1 year ago
Hello there 👋. Congratulations on successfully completing the challenge! 🎉
- I have other recommendations regarding your code that I believe will be of great interest to you.
HTML 🏷️:
- This solution may cause accessibility errors due to lack of semantic markup, which causes lacking of landmark for a webpage and allows accessibility issues to screen readers, due to accessibility errors our website may not reach its intended audience, face legal consequences, and have poor search engine rankings, highlighting the importance of ensuring accessibility and avoiding errors.
- What is meant by landmark ?, They used to define major sections of your page instead of relying on generic elements like
<div>
or<span>
. They are use to provide a more precise detail of the structure of our webpage to the browser or screen readers
- For example:
- The
<main>
element should include all content directly related to the page's main idea, so there should only be one per page - The
<footer>
typically contains information about the author of the section, copyright data or links to related documents.
- So resolve the issue by replacing the react's root node
<div id="root">
with the proper semantic element<main>
as<main id="root">
in yourindex.html
file to improve accessibility and organization of your page
.
I hope you find this helpful 😄 Above all, the solution you submitted is great !
Happy coding!
1
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