Fylo landing page with two column layout using pure CSS.

Solution retrospective
Here is my solution to this Challenge, Please have a look. Your little suggestion or tip can help me improve as a newbie in the front-end.
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@dwhenson
Hey @Rohitgour03 - nice job here!! 👍
Here's a few small comments for you to consider:
-
I'd add
curser: pointer
to your buttons - this seems to be a common convention and what most people expect. -
Do you have a label associated with your
input
elements? You should have, but the FEM accessibility linter isn't picking it up as an error. Here's a nice article that gives a good explanation of why this is: https://css-tricks.com/html-inputs-and-labels-a-love-story/ (you can always hide the label using CSS if you don't want people to see it) -
I noted that you sent
outline: none
on everything. If you remove outline styles then it is important to add back in your own custom outline styles as otherwise it can make it very hard for keyboard users to navigate the page.
If you don’t like the default styles I have found the advice in this article very useful, and use it in pretty much all my projects: https://css-tricks.com/the-focus-visible-trick/
Here's the code I usually add:
/* Add styled focus states on tab not hover */ :focus-visible { outline: 3px dotted currentColor; outline-offset: 0.25rem; } :focus:not(:focus-visible) { outline: transparent; }
-
Lastly, I think the links in your social icons also need an accessible name - if you don't want to add text adding
aria-label: Facebook
or whatever to the link itself should solve this problem and get rid of those errors. -
Lastly I noted the logo in the footer's color wasn't changing. To do this you either need to inline the svg and change the fill setting, or make a copy of the file and change the fill setting. I find svgs super tricky, so this might not work but it's what I would try!
Great work and keep going!!
Cheers 👋
Dave
Marked as helpful -
- @MichalTrubini
Hello there,
I suggest using this tool to change color of svg files. It works perfectly.
https://codepen.io/sosuke/pen/Pjoqqp
Marked as helpful
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