palcarazm / bootstrap5-toggle

Bootstrap 5 Toggle is a bootstrap plugin/widget that converts checkboxes into toggles.
https://palcarazm.github.io/bootstrap5-toggle/
MIT License
38 stars 4 forks source link

[BUG] In input-group corners aren't rendered as expected #54

Closed palcarazm closed 2 years ago

palcarazm commented 2 years ago

Describe the bug In an input-group, only external corners of the first and last element have to be rounded

To Reproduce Steps to reproduce the behavior and minimal code:

  1. Create a toggle in an input group
  2. see the corner are always rounded

Code for Bootstrap4, same issue in bootstrap 5

<div class="input-group mb-3 w-75">
        <input type="checkbox" checked data-toggle="toggle">
        <div class="input-group-prepend">
            <span class="input-group-text">Default</span>
        </div>
        <input type="text" class="form-control">
    </div>
    <div class="input-group mb-3 w-75">
        <div class="input-group-prepend">
            <span class="input-group-text">Default</span>
        </div>
        <input type="text" class="form-control">
        <input type="checkbox" checked data-toggle="toggle">
    </div>
    <div class="input-group mb-3 w-75">
        <div class="input-group-prepend">
            <span class="input-group-text">Default</span>
        </div>
        <input type="checkbox" checked data-toggle="toggle">
        <input type="text" class="form-control">
    </div>

Expected behavior Only external corners of the first and last element have to be rounded in an input-group.

Screenshots 127 0 0 1_5500_v3 X X_

Package: (please complete the following information)

Desktop: (please complete the following information)

:ballot_box_with_check: Task list

github-actions[bot] commented 2 years ago

Hi! :wave: Thanks for your issue. You are helping to improve Bootstrap 5 toggle.