-
Notifications
You must be signed in to change notification settings - Fork 124
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
Alignment issue with input-group-btn #24
Comments
hi @Leonivek thanks for posting your issue. |
This is in Chrome, Edge, Opera, Vivaldi, and IE11. Funny thing is, I didn't verify my recent changes in Firefox. So I just checked and it's worse with the form-control class on the button in FF: However, removing the class makes it look perfect in Firefox, as shown below, but then I have the alignment issue on all other browsers. So in short, it only looks like it should in Firefox. |
Corrected my previous comment to say that it is an alignment issue on all other browsers, not square buttons. |
Sigh... my apologies. Ignore my last 2 comments. I made a mistake. Let me try this again. Without the form-control class on the button, the alignment issue only exists in Chrome, Vivaldi, and Opera. All other browsers render it fine. |
To be sure, the following code, without typeahead, does not have this issue:
|
Thanks for the followup. I wanted to add to this a couple hours ago but was stuck in a Scrum meeting for 2 hours. I realized just before my meeting that the issue is NOT with Typeahead, because I did just that: used the button addon without Typeahead and the issue still exists, only in Chrome, Opera, and Vivaldi. I had wrongly assumed this because the only time we are actually using a button addon at the moment is with Typeahead. Others are just input addons, which work fine. Sorry for the hassle, and I will close this. Now to figure out what's really happening. |
This ended up being an issue with number precision when compiling the Sass version of Bootstrap. Changing it from the default 5 to 10 in my Gruntfile fixed the issue. twbs/bootstrap-sass#409 |
In reference to issue #22 , when I attempt to use an input-group-btn with Typeahead, the button does not align properly with the textbox. Add-ons work fine.
Here is the code:
Which renders as:
I am using the latest version of Bootstrap, Typeahead, and this CSS. There is no custom CSS.
I can fix this issue by adding a 'form-control' class to the button element (which, I feel, I shouldn't have to), but then the button corners become square:
The text was updated successfully, but these errors were encountered: