bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

button in navbar bug

Open simonfranz opened this issue 14 years ago • 10 comments

Hi there, I want to use a button in my navbar, but there are some weird effect when i hover the button.( tested in Firefox 10.0.2 and Chrome 16) Here is an example: http://jsfiddle.net/MgDgD/

Is there also a chance in bootstrap to increase the distance from the .navbar-text and the .navbar-search ? In my oppinion the buttons are way too close.

simonfranz avatar Feb 18 '12 18:02 simonfranz

Unsure why the button's hover is messed up—it appears to be a result of being within the p tag. I'll look into that more.

The spacing is up to you—you'll need to add margin to the .navbar-form or something similar.

mdo avatar Feb 19 '12 04:02 mdo

+1 on the bug. I get the same weird effect on latest Chrome 18.0.1025.39 (beta channel) Mine isn't under a p tag.. it's under a li , under the ul.nav. spacing is all off and weird plus it shifts up when on hover.

Edit: also just noticed, if I change the a.btn to a button tag, it works as expected.

kensaggy avatar Feb 22 '12 21:02 kensaggy

+1, have the same issue.

xen avatar Feb 23 '12 23:02 xen

+1 same issue here

sekati avatar Mar 02 '12 04:03 sekati

I think I had the same bug. Enclosing the <a> element in an empty <div> seems to solve the problem, at least in my case.

<li><div><a class='btn btn-primary btn-small' href="#">A button</a></div></li>

asaladin avatar Mar 09 '12 13:03 asaladin

+1, I have the same issue. It only happens to me when using pull-right (either on the a tag or on a parent div/p/span tag) Edit: Removing the class navbar-text from the parent tag corrects the problem.

Voziv avatar Mar 10 '12 00:03 Voziv

wow thanks @asaladin , that solved the problem for me too

horape avatar Mar 14 '12 03:03 horape

Resolved for now by removing the offending styles on the .navbar-text a and relegated the text color change to a new class.

mdo avatar Mar 25 '12 08:03 mdo

:+1: wrapping button within div did the magic.

Thanks asaladin

ashitvora-zz avatar Nov 05 '12 12:11 ashitvora-zz

Thanks

muddasirawan avatar Jun 11 '15 07:06 muddasirawan