@juanpb96
Posted
Hi @Sloth247
Good job on your solution 👍
To help you with your questions I consider:
- Hover works for buttons but you are having a problem with a
background
property that is not working, try usingopacity
and you will see the change on hover. So, please review yourbackground
property 👁️🗨️ - You can use
backgroud-repeat: no-repeat
. However, I can't understand your question pretty well. - Did you use
form.addEventListener('submit', function(){})
?
Hope my suggestions could help you. 🙌
Happy coding!
Marked as helpful
@Sloth247
Posted
@juanpb96
Hi Juan, thank you for your review. I set hover on button but it didn't work. How can background property relate to hover? I meant light pink background image, how can I code to look completely same as the original design?
Yes, I have used form.addEventListener as you can see my Github but still does not work :(
@juanpb96
Posted
@Sloth247
Hi again Sloth. I was checking your css and within this selector :
#arrow:hover, #arrow:focus {
background: linear-gradient(135deg, hsl(0, 0%, 100%), to hsl(0, 100%, 98%));
}
-I found your hover state and the background property I told you. If you remove the to
of the linear-gradient it will work.
- I'm not quite sure. But looking at your code, I found you are using a container tag that does not exist in HTML. You can replace it with
div
. - In your GitHub, you only use arrow to listen for 'click' events but your const
form
is not being used.
@Sloth247
Posted
@juanpb96 Hi Juan, thank you very much and I'm sorry to take your time for this. I have updated your suggestions on my coding.
- hover: solved, thanks
- container: fixed to <div>
- I have changed to
form.addEventListener("submit", function (event) {
but when you try in my live site, you'll see there is no warning message/icon when you click "submit".
@juanpb96
Posted
@Sloth247
Hi once again Sloth. Don't worry, it is good that my suggestions can help you 😄
- You're almost done 🙌, you only need to insert in your HTML the
novalidate
attribute in your form tag.
Hope this helps!
@Sloth247 Greetings.
- put eventPreventDefault outside the if statement. Let it be above the if statement.
@Sloth247
Posted
@juanpb96 Hi Juan,
Wow it worked! I still need to figure out the logic but you're a star! Thank you very much 😁
@Sloth247
Posted
@ChamuMutezva I fixed it. Thank you for your help as always 🙌