My button component looked like this and it worked fine:
<Button
component={Link}
to={link}
style={{
background: '#6c74cc',
borderRadius: 3,
border: 0,
color: 'white',
height: 48,
padding: '0 30px',
width: 200,
}}
//className={classes.button}
>
{text}
</Button>
However, now I am trying to move from inline styles to this:
export const useStyles = makeStyles(() =>
createStyles({
button: {
background: '#6c74cc',
borderRadius: 3,
border: 0,
color: 'white',
height: 48,
padding: '0 30px',
width: 200,
},
}),
);
Now when I hover over my button, it becomes transparent/translucent. Even though the styling is the same as before. How can I stop this?