Consider the following scss:
.link {
  ....
  span {
    .... 
    &:after {
      ....
      .link.active & {
        background-color: red;
      }
      .link:hover & {
        background-color: red;
      }
I want to change the background-color for the span :after pseudo-element when link is either being hovered or has the .active class.
What I've tried ( the code posted above ) doesnt seem to work.
Is there anything I'm missing ?
 
     
    