When the child element span.icon-hamburger in the below code receives a :focus state, I am wanting to change the styling of the li element. Using a SASS solution, I read that @at-root could work here. I am unable to find a SASS solution for this use-case using @at-root, however. What are your thoughts for this use-case?
HTML:
<ol>
<li>
<span class="icon-hamburger"></span>
</li>
</ol>
CSS/SASS:
.icon-hamburger:focus {
@at-root ol li #{&} {
background-color: #fff;
}
}