title: Styled Components: Style Parent if child has attribute
body: <p>I have a Parent that has a deeply nested child which can get an attribute if selected.</p>
  <p>How do I style the background-color of the parent, only if a deeply nested child has an attribute of 'selected'?</p>
  <pre><code>&lt;Parent&gt;
   &lt;Child&gt;
    &lt;NestedChild selected&gt;
  </code></pre>
  <p>This is what I have tried:</p>
  <pre><code>const Parent = styled.div`
    &amp;[selected] { // But this only styled the child, not the parent}
  `;
  </code></pre>