I have a component with a list of icons using react-ionicons like so:
export default function SocialIconsViewer() {
return (
<ul className="socials">
<li><a href="www.twitter.com"><LogoTwitter/></a>
</li>
<li><a href="www.twitter.com"><LogoFacebook
title={'Facebook'}
/></a>
</li><li><a href="www.twitter.com"><LogoInstagram
title={'Instagram'}
/></a>
</li><li><a href="www.twitter.com"><LogoYoutube
title={'Youtube'}
/></a>
</li><li><a href="www.twitter.com"><Mail
title={'E-mail'}
/></a>
</li>
</ul>
);
}
I am trying to create a hover effect over these icons in the css file that imported here:
.socials {
position: absolute;
right: 100px;
bottom: 30px;
z-index: 4;
display: flex;
flex-direction: column;
}
.socials li {
list-style: none;
}
.socials li a {
text-decoration: none;
color: var(--black);
font-size: 1.75em;
transition: 300ms;
}
.socials li a:hover {
color: crimson;
}
However, this doesn't seem to work and I am having a hard time finding information to work with react-ionicons.