This was an easier project to code, but any small errors that I missed please point them out to me, or if there was a better way I could have coded the project, please don't hesitate to let me know! All feedback is greatly appreciated!
Lucaci Daniel
@DanielLucaciAll comments
- @LBuchananCatesSubmitted almost 2 years ago@DanielLucaciPosted almost 2 years ago
Hey @LBuchananCates, how are you ?
I like your app very much, but it seems that the path to the icon-star is incorrect. Instead of <img src="./images/icon-star.svg" alt="star" /> it should have been <img src="./icon-star.svg" alt="star" />
Hope my feeedback helped you.
0 - @Tumelo4Submitted almost 2 years ago
how can i make sure that hover works after click on button number because my program does show hover before clicking on any button number but does not work after clicking on one of numbers
@DanielLucaciPosted almost 2 years agoAdding !important after background color seems to work, i.e.: .rate:hover { background-color: var(--clr-Orange) !important; }
The hover effect didn't work anymore, because the script adds an inline styling for every button when reacting to the 'click' event. This forces the background color to be the same even when hovering over the button. Adding '!important' forces it to be 'orange', so it overwrites the color defined with the inline styling. I hope this makes sense to you.
Marked as helpful0