I have two nested modules:
<div class="header">
.....
<i class="topIcon"></i>
......
</div>
I have two separate files (I would like to keep it separate because they are reusable parts and can be used separately throughout the application) acting as modules in SMACSS terminology:
Header:
.header {
/* header styles */
}
Icon:
.topIcon {
/* icon styles */
}
Now I want to apply some styles to my topIcon
when header
has :hover
state.
I can put .header:hover .topIcon
inside my icon module file and apply style, however from my POV it breaks SMACSS rules.
Do you have any better suggestions?