I am using the font awesome framework for the icons.
.fa-circle {
color: red;
}
.fa-times {
color: #fff;
}
.fa-circle:focus,
.fa-circle:hover {
color: #fff;
border: 2px solid black;
}
.fa-times:focus,
.fa-times:hover {
color: red;
}
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-times fa-stack-1x"></i>
</span>
The above image is for the normal state.
On hover or focus, i want the circle color should change to white with red border and times icon shade changes to red. I need some kind of inverse on the hover action. But for some reason, it is not happening for the circle.
Please suggest where am i making the mistake.