title: Bootstrap 4 Button Group wrapping fix border-radius
body: <p>I'm using Bootstrap 4.3.1 if that makes any difference.</p>
  
  <p>I have a button group that looks like this:</p>
  
  <pre><code>&lt;div class="row mt-3"&gt;
      &lt;div class="col text-center"&gt;
          &lt;div id="alphabetGroup" class="btn-group flex-wrap" role="group"&gt;
              &lt;button id="btnHash" type="button" class="btn btn-outline-dark"&gt;#&lt;/button&gt;
              &lt;button id="btnA" type="button" class="btn btn-outline-dark"&gt;A&lt;/button&gt;
              &lt;button id="btnB" type="button" class="btn btn-outline-dark"&gt;B&lt;/button&gt;
              &lt;button id="btnC" type="button" class="btn btn-outline-dark"&gt;C&lt;/button&gt;
              &lt;button id="btnD" type="button" class="btn btn-outline-dark"&gt;D&lt;/button&gt;
              &lt;button id="btnE" type="button" class="btn btn-outline-dark"&gt;E&lt;/button&gt;
              &lt;button id="btnF" type="button" class="btn btn-outline-dark"&gt;F&lt;/button&gt;
              &lt;button id="btnG" type="button" class="btn btn-outline-dark"&gt;G&lt;/button&gt;
              &lt;button id="btnH" type="button" class="btn btn-outline-dark"&gt;H&lt;/button&gt;
              &lt;button id="btnI" type="button" class="btn btn-outline-dark"&gt;I&lt;/button&gt;
              &lt;button id="btnJ" type="button" class="btn btn-outline-dark"&gt;J&lt;/button&gt;
              &lt;button id="btnK" type="button" class="btn btn-outline-dark"&gt;K&lt;/button&gt;
              &lt;button id="btnL" type="button" class="btn btn-outline-dark"&gt;L&lt;/button&gt;
              &lt;button id="btnM" type="button" class="btn btn-outline-dark"&gt;M&lt;/button&gt;
              &lt;button id="btnN" type="button" class="btn btn-outline-dark"&gt;N&lt;/button&gt;
              &lt;button id="btnO" type="button" class="btn btn-outline-dark"&gt;O&lt;/button&gt;
              &lt;button id="btnP" type="button" class="btn btn-outline-dark"&gt;P&lt;/button&gt;
              &lt;button id="btnQ" type="button" class="btn btn-outline-dark"&gt;Q&lt;/button&gt;
              &lt;button id="btnR" type="button" class="btn btn-outline-dark"&gt;R&lt;/button&gt;
              &lt;button id="btnS" type="button" class="btn btn-outline-dark"&gt;S&lt;/button&gt;
              &lt;button id="btnT" type="button" class="btn btn-outline-dark"&gt;T&lt;/button&gt;
              &lt;button id="btnU" type="button" class="btn btn-outline-dark"&gt;U&lt;/button&gt;
              &lt;button id="btnV" type="button" class="btn btn-outline-dark"&gt;V&lt;/button&gt;
              &lt;button id="btnW" type="button" class="btn btn-outline-dark"&gt;W&lt;/button&gt;
              &lt;button id="btnX" type="button" class="btn btn-outline-dark"&gt;X&lt;/button&gt;
              &lt;button id="btnY" type="button" class="btn btn-outline-dark"&gt;Y&lt;/button&gt;
              &lt;button id="btnZ" type="button" class="btn btn-outline-dark"&gt;Z&lt;/button&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>When looking on desktop, or any device that has a wide enough screen, it looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/YnXPn.png" rel="nofollow noreferrer">Alphabet Button Group</a></p>
  
  <p>Now, when you go to a smaller screen, or mobile, it wraps around and instead looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/rnSqV.png" rel="nofollow noreferrer">Wrapped Button Group</a></p>
  
  <p>I'm fine with how this looks, however there is something I would like to change:</p>
  
  <ul>
  <li>I can make the top-left (first button) and bottom-right (last button) have the proper rounded corners, but how would I do this to the bottom-left and top-right buttons? Depending on the width of the window, the buttons themselves are not always the same, and I don't want to force group splitting (multiple groups at set breakpoints, etc).</li>
  </ul>
  
  <p>Here's a JSFiddle you can play around with. For some reason it doesn't justify the buttons like in my own code, but it doesn't really matter - if you make the results pane thinner you can see the button group wrap, and the left side should be justified with the top line. If you can make that first line have border-bottom-left-radius then something similar should be able to be applied to the top right as well.</p>
  
  <p><a href="https://jsfiddle.net/cglatot/yu6w4rkv/1/" rel="nofollow noreferrer">https://jsfiddle.net/cglatot/yu6w4rkv/1/</a></p>