I have a trashcan icon that is dark gray. When I hover over it, I would like the trashcan icon to turn blue and the background to be a light gray circle.
So far, the background turns light gray, but it is a rectangle, not a circle. Also, the icon is not changing from dark gray to blue.
css:
.trash-icon {
vertical-align: middle;
cursor: pointer;
}
.trash-icon:hover {
background: #e5e9f1; /* light gray */
color: #459ae1; /* blue */
}
icon:
export const DeleteTrashCan = ({ onClickDelete }) => (
<span className="delete-row-icon" onClick={onClickDelete}>
<Icon
className="trash-icon"
color={IconColor.NEUTRAL_90} /* dark gray */
size={IconSize.TWENTY}
type="trash"
/>
</span>
)
html:
<div className="row-delete">
<DeleteTrashCan onClickDelete={() => handleDelete(index)} />
</div>