title: How to change the border color when input is checked
body: <p>Is there a way to have a change in border color of parent element(<code>label</code>) when child element(<code>input</code>) is checked .</p>
  <p>Is it possible with CSS</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.OuterField {
    display: flex;
  }
  
  .listLabel {
    padding: 8px 5px;
    border: 2px solid black;
    width: 32%;
    margin: 1%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-flow: row;
  }
  
  input[type="radio"]:checked~label {
    border: 2px solid red;
    box-shadow: 0 0 0 3px orange;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="OuterField"&gt;
      &lt;label for="List1" class="listLabel"&gt;List 1
          &lt;input type="radio" id="List1" name="list" value="List1"&gt;
       &lt;/label&gt;
       &lt;label for="List2" class="listLabel"&gt;List 2
           &lt;input type="radio" id="List2" name="list" value="List2"&gt;
       &lt;/label&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p><strong>Thanks for help in advance</strong></p>