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

Results summary component 【 React & TypeScript 】

Kure-ru 120

@Kure-ru

Desktop design screenshot for the Results summary component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hi there! 👋

I had a lot of fun doing this challenge, however I cannot figure out why the hover effect doesn't work on my button.

I would be very grateful if you had any insight about this problem.

Thanks

Community feedback

Tomazi 300

@tomazi15

Posted

Hi @Kure-ru

The problem you are having is is z-index: -1 I think what this does it puts your summary section behind everything thing even including the body and even dough it is visible on the page because its is not covered by any other element. In short the the whole summary section sits behind and the whole section is not clickable including your button hence why you cannot see the hover effect.

Even if you inspect the element you will see you cant pick any elements on your summary sections but you can on your result section.

To fix this

add z-index: 10 to your summary class and z-index: 20 to your results class. This way you will not be sending anything behind the page body but you will simply put result on top of summary.

If you still struggling i can make a PR to your repo :)

Hope this helps keep coding 👌

Marked as helpful

0

Kure-ru 120

@Kure-ru

Posted

Hi @tomazi15 ,

Thank you so much for your help, I just couldn't figure it out. 😂

Have a great week-end!

0
kasey 320

@kaseyvee

Posted

Hello! Your z-index in .summary is set to -1.

Instead, you can remove that z-index and add z-index: 1; to .result.

Marked as helpful

0

Kure-ru 120

@Kure-ru

Posted

Hi @kaseyvee Thank you for finding the error! This helps a lot. 🙏

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