How can I apply different styling properties when hovering over a selected option with the class ".form-option-card" and ".form-option-selected"? By default, unselected options only have the class form-option-card, while the selected option includes the form-option-selected class. Is it possible to differentiate the hover effects between the two?
I attempted to define two hover event interpretations as shown below:
.form-option-card {
padding: 16px 24px;
display: flex;
flex: 0 0 auto;
box-sizing: border-box;
flex-direction: row;
justify-content: flex-start;
align-items: center;
border-radius: 6px;
border: 0.5px solid #d1d1d122;
margin: 0px 0px 12px;
max-width: 570px;
width: 100%;
min-height: 64px;
margin-left: auto;
margin-right: auto;
transition: transform 0.1s, border-color 0.5s, background-color 0.2s, box-shadow 0.1s;
}
.form-option-card:hover {
transform: scale(1.01);
background-color: #ffffff05;
box-shadow: 0px 0px 15px #ffffff19;
}
.form-option-card:hover .form-option-selected {
background-color: #6454f305;
}
However, this approach is not yielding the desired outcome. Are there any alternative solutions to achieve the intended hover effects?