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

Clock App using React and SCSS

Paola 320

@paolas771

Desktop design screenshot for the Clock app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
3intermediate
View challenge

Design comparison


SolutionDesign

Solution retrospective


The only thing I could not figure out was how to change the color of the button on hover. I tried to change the fill in the svg to currentColor then change the color in scss but that would not work. Any suggestions on how to do this would be great, thank you!

Community feedback

enochlee 600

@iamenochlee

Posted

Great job poala, this is nice!

Once you use an img tag to import an svg, the fill property no longer works it's now considered and image, you can get around this by using the svg directly, then the fill property will work, you can also use an object tag to import it.

<object data="your.svg" type="image/svg+xml">
</object>

OR

<svg>
<use href="filename.svg"></use>
</svg>

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