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

input-group buttons are misaligned #23006

Closed
Alex-PK opened this issue Jul 6, 2017 · 3 comments
Closed

input-group buttons are misaligned #23006

Alex-PK opened this issue Jul 6, 2017 · 3 comments

Comments

@Alex-PK
Copy link

Alex-PK commented Jul 6, 2017

When using this code in v4-alpha6:

<nav class="navbar bg-faded">
  <form class="form-inline my-2">
    <div class="input-group mx-2">
      <span class="input-group-addon">Monitoring:</span>
      <span class="input-group-btn">
        <button class="btn btn-outline-primary" type="button">All</button>
      </span>
      <span class="input-group-btn">
        <button class="btn btn-outline-success" type="button">Yes</button>
      </span>
      <span class="input-group-btn">
        <button class="btn btn-outline-danger" type="button">No</button>
      </span>
    </div>
  </form>
</nav>

I get this:

bootstrap-input-group-alignment

As you can see, the add-on buttons are overlapping by 2-3 pixels.

I tested it in both Firefox 44 and Chrome 59 on Ubuntu 17.04

@michaelwoodew
Copy link

michaelwoodew commented Jul 6, 2017

Correct, It is on this fiddle
https://jsfiddle.net/enwfc3q5/

@mdo
Copy link
Member

mdo commented Jul 6, 2017

Confirmed on my end. Looks like we're giving all those left and right negative margin. Will need to revisit some selectors there.

@gijsbotje
Copy link
Contributor

could this work?
https://codepen.io/gijsbotje/pen/pwxbXx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants