Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Fisrt time using Sass

#sass/scss
muriloβ€’ 110

@mlzzi

Desktop design screenshot for the Article preview component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


First time using Sass. If you have some tips, please, be my guest.

I have one question. When I load the page I need to click two time to the share button to it pop up. Then, in the sequence clicks it work propely. Not sure why this is hapening, any guess?

Please, don't be shy and give me feedback :)

Thanks in advance!

Community feedback

Anosha Ahmedβ€’ 9,340

@anoshaahmed

Posted

Hey good job on this challenge! Your report above shows a few issues. You can fix them by

  • wrap everything in your body in <main> ... OR use semantic tags! .... you can also give role="" to the direct children of your <body> but that's a little frowned upon... Read more here

Hope this helps :)

Marked as helpful

1

muriloβ€’ 110

@mlzzi

Posted

@anoshaahmed Thanks

I changed the HTML. The issue was that the attribution were a div tag, but I changed it to footer. Not sure if it is a footer. Haha But thank for your feedback.

I really appreciated!

1
Anosha Ahmedβ€’ 9,340

@anoshaahmed

Posted

@mlzzi yup semantics r more accessible

0
Alex Liβ€’ 380

@awexli

Posted

Hi Murilo,

Looking at your openShareIcons function. The reason why it doesn't open the first time is because by default share.style.display does not equal to "none", and so it will execute the else block.

Marked as helpful

1

muriloβ€’ 110

@mlzzi

Posted

@awexli Thanks Alex,

I inverted the blocks conditions and now it works fine.

Best regards!

1

Please log in to post a comment

Log in with GitHub
Discord logo

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