bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Tabs with icon

Open BenjiZombie opened this issue 14 years ago • 5 comments

If you create a tabbable navigation and add an icon to only one tab, the other tab(s) have an incorrect height and thus the bottom border is shown.

The following example illustrates the issue:

http://jsfiddle.net/ZCZev/

A temporary solution is to add

<i class="icon-blank"></i>

Inside the tab's anchor element and have icon-blank be like:

.icon-blank {
    width: 0px;
}

BenjiZombie avatar Feb 13 '12 19:02 BenjiZombie

Not seeing the problem you're mentioning on Chrome 18.

Anahkiasen avatar Feb 14 '12 08:02 Anahkiasen

I can reproduce in Chrome 17, FF and IE 9.

BenjiZombie avatar Feb 14 '12 13:02 BenjiZombie

Ah, I see it now. Will look into it. To clarify, the problem appears on hover of the non-active tab.

mdo avatar Feb 18 '12 05:02 mdo

I've resolved this in 2.0.2-wip by adding line-height: 18px.

mdo avatar Feb 22 '12 16:02 mdo

Is this solved in 2.1.0? I am having this issue with that version.

ghost avatar Aug 28 '12 02:08 ghost