I am struggling to find a solution for this issue.
Currently, I have a hover effect where when I click on a submenu li item, the parent li also gets highlighted. You can see the behavior in the image below: https://i.sstatic.net/Ie6Lb.png
Is there any way to achieve this using just CSS? While I'm open to a jQuery solution, I'm interested to know if it's possible with CSS alone.
ul li:active > a
{
background-color: #2c3e50 !important;
color: #fff !important;
opacity: 1 !important;
}
<ul>
<li class="solutions-link active" id="solutions-link">
<a href="#" class="left-side">
<span>Solutions</span>
</a>
<a href="#" class="arrow-up right-side" aria-hidden="true" data-toggle="collapse" data-target="#hiddenMenuOne">
<i class="fa fa-chevron-down">
</i>
</a>
<ul id="hiddenMenuOne" class="collapse first-tree">
<li>
<a href="#">Offices</a>
</li>
<li>
<a href="#">Help</a>
</li>
</ul>
<li>
</ul>