title: Same width tabs based on largest content side by side
body: <p>So the conditions that I would like to achieve is </p>
  
  <ul>
  <li>Width of each tab is based on the label</li>
  <li>All tabs are the same size as the longest tab (with longest label)
  
  <ul>
  <li>As such the tab group should <strong>not</strong> be fixed or take up 100% of parent. Should be based on longest tab.</li>
  </ul></li>
  <li>The layout of the tabs are side by side.</li>
  </ul>
  
  <p>This is my progress so far (not same width as largest): <a href="https://jsfiddle.net/cyhwx7z0/5/" rel="nofollow noreferrer">https://jsfiddle.net/cyhwx7z0/5/</a></p>
  
  <p>I have tried <a href="https://stackoverflow.com/questions/9769587/set-div-to-have-its-siblings-width">this solution</a> but the layout is not side by side. <a href="https://jsfiddle.net/alexkwa/L9oy6hbp/1/" rel="nofollow noreferrer">https://jsfiddle.net/alexkwa/L9oy6hbp/1/</a></p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;div class="wrapper"&gt;
    &lt;ul class="tab-group"&gt;
      &lt;li class="single-tab"&gt;Tab 1&lt;/li&gt;
      &lt;li class="single-tab"&gt;Tab 2&lt;/li&gt;
      &lt;li class="single-tab"&gt;Very Long Tab Name&lt;/li&gt;
      &lt;li class="single-tab active"&gt;Tab 4&lt;/li&gt;
      &lt;li class="single-tab"&gt;Tab 5&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>SCSS</strong></p>
  
  <pre><code>$active-color: #262933;
  $inactive-color: #B3B4B8;
  $inactive-font-color: #8B8C8F;
  $border-thickness: 1px;
  $border-radius: 3px;
  
  body {
    background: #fff;
    padding: 20px;
    font-family: Helvetica;
  }
  
  .wrapper {
    display: inline-block;
  }
  
  .tab-group {
    display: flex;
    flex-direction: column;
    list-style: none;
  }
  
  .single-tab {
    background-color: #fff;
    border: $border-thickness solid $inactive-color;
    border-right: 0;
    border-sizing: border-box;
    color: $inactive-font-color;
    cursor: normal;
    font-size: 14px;
    padding: 9px 21px;
    margin: 0;  
    margin-left: -6px;
    user-select: none; 
  
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }
  
  .single-tab:first-child {
    border-radius: $border-radius 0 0 $border-radius;
  }
  
  .single-tab:last-child {
    border-radius: 0 $border-radius $border-radius 0;
    border-right: $border-thickness solid $inactive-color;
  }
  
  .single-tab.active {
    background-color: $active-color;
    border: $border-thickness solid $active-color;
    color: #fff;
  }
  
  .single-tab.active + .single-tab {
    border-left: 0;
  }
  
  .single-tab:last-child.active {
    border-left: 0;
  }
  </code></pre>
  
  <p>Any ideas?</p>