0

I am making a todo app using react and faunadb. In the main UI there is a button which when hovered on I want to change cursor to pointer. This is the button JSX:

<button className="add-btn"><FontAwesomeIcon icon={faPlus}/></button>

And this is the CSS:

.add-btn:hover{
  cursor: pointer;
}

2 Answers 2

1

Omit :hover, simply declare

.add-btn {
  cursor: pointer;
}
Sign up to request clarification or add additional context in comments.

Comments

0
<button className="btn hover"><FontAwesomeIcon icon={faPlus}/></button>

add css

.hover:hover{
  cursor: pointer;
}

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.