3-column preview card component (SCSS/BEM and Vite)
Design comparison
Solution retrospective
I'm practicing planning. How to prepare the project and start organising the styles needed to be more effective. I have a good workflow with vite and prettier. I will add a little script to clean the files and organise the folders. I want to search for a script to optimise the assets.
What challenges did you encounter, and how did you overcome them?I first added the svg as inline in the html. It was difficult to handle the sizes to make them scale in case of font size change. I ended up using a normal tag to add them as I don't need to control a color. It was easier also to just add an empty alt tag so screen readers ignore these decorative svg.
What specific areas of your project would you like help with?Any feedback is welcome.
Community feedback
- @grace-snowPosted 5 months ago
Try not to make aria labels too verbose. "Learn more - Sedans" would be fine!
Also beware how you are nesting the scss. There is no reason to nest classes like this and it can create high specific css that's unwieldy and difficult to manage.
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