In my current nextJS project, I am incorporating SCSS and encountering an issue when attempting to target the child element on hover and focus:
.accordion {
max-width: 600px;
margin: 4rem auto;
width: 90%;
font-family: "Raleway", sans-serif;
background: #f4f4f4;
&__copy {
display: none;
padding: 1rem 1.5rem 2rem 1.5rem;
color: gray;
line-height: 1.6;
font-size: 14px;
font-weight: 500;
&--open {
display: block;
}
}
&:hover {
// Wondering how to target &__copy here?
&__copy {
// What code should go here?
}
}
}