I am attempting to modify the text displayed on a button when hovering over it in a React component from Ant Design. However, I have not been successful so far.
Button
<div className={ status == "verified" ? `${styles.btn1} ${styles.btn1Contact}` : `${styles.btn} ${styles.btnContact}`} >
<Button className={ status == "verified" ? `${styles.btnremove}` : `${styles.btnremove1}`}
> {status} </Button>
</div>
I tried to achieve this using CSS pseudo-classes like :hover, but unfortunately, the changes are not reflecting as expected.
In my stylesheets, I have defined the following classes:
.btn {
display: flex !important;
{
margin-top: 10px;
}
&:hover {
color: $fade-color;
}
&:focus {
color: $fade-color;
}
}
}
styles.btn1:
.btn1 {
@media only screen and (max-width: $max-size-2) {
margin-top: 10px;
}
}
}
and
.btnremove {
border: 0px !important;
}
It seems that there might be an issue with my CSS selectors or specificity. I will continue troubleshooting to resolve this problem.