Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Floating labels in the input group do not fully cover #36754

Closed
3 tasks done
eturerer opened this issue Jul 16, 2022 · 1 comment
Closed
3 tasks done

Floating labels in the input group do not fully cover #36754

eturerer opened this issue Jul 16, 2022 · 1 comment

Comments

@eturerer
Copy link

Prerequisites

Describe the issue

  <div class="col bg-info">
    <div class="input-group">
      <div class="form-floating">
        <input type="email" class="form-control" id="floatingInput" placeholder="name@example.com">
        <label for="input-model" class="col-form-label">model</label>
      </div>
      <div class="input-group-text">
        <div class="form-check form-switch">
          <input type="checkbox" name="override[model]" value="1" id="input-variant-model" class="form-check-input" /> 
          <label for="input-variant-model" class="form-check-label"></label>
        </div>
      </div>
    </div>
  </div>

  <div class="col bg-warning">
    <div class="input-group">
      <div class="form-floating">
        <input type="email" class="form-control" id="floatingInput" placeholder="name@example.com">
        <label for="input-model" class="col-form-label">model</label>
      </div>
      <div class="input-group-text">
        <div class="form-check form-switch">
          <input type="checkbox" name="override[model]" value="1" id="input-variant-model" class="form-check-input" /> 
          <label for="input-variant-model" class="form-check-label"></label>
        </div>
      </div>
    </div>
  </div>


</div>

Reduced test cases

https://stackblitz.com/edit/bootstrap-5-fnseaq?file=src%2Findex.html

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Chrome

What version of Bootstrap are you using?

5.2.0-beta1

@mdo
Copy link
Member

mdo commented Jul 18, 2022

Duplicate of #34513.

@mdo mdo closed this as completed Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants