After examining the following HTML code:
<div id="a" class="a_button">
<a class="a_link" href="#">
<div class="icon_container">
<img class="icon_image" src="#">
</div>
<div class="title_container">
<span class="title_inactive">
Title
</span>
</div>
</a>
</div>
To illustrate the issue better, an image has been attached.
As shown, the button contains two divs
: icon_container
and title_container
.
Upon hovering over the button, the background color changes as expected. Currently, the text color of title
is black by default and should switch to white
when hovered over.
When the mouse hovers over the title_container
div, the text color changes correctly between black and white.
However, when hovering over the icon_container
, the text color remains unchanged to white even though the background color switches.
Is there a way to ensure that hovering over the icon_container
will also modify the title
color?
Here's the current progress for reference:
https://jsfiddle.net/8wfhnupk/5/
Thank you!