Input add-on with tooltip removes rounded corners
Created by: jc-white
<div class="input-append">
<select class="input-medium required">
<option value="">--Select--</option>
</select>
<span class="add-on">Test</span>
</div>
$('span.add-on').tooltip({
placement: 'bottom',
title: 'Test'
});
Using this code, the tooltip will work fine, but the rounded-corners will be removed from the span.addon due to this selector:
.input-append .last-child, .input-append .btn:last-child {
-webkit-border-radius: 0 3px 3px 0;
-moz-border-radius: 0 3px 3px 0;
border-radius: 0 3px 3px 0;
}
When the span.addon is hovered over, it is no longer the last child and thus the selector is instead applied to the tooltip div. My suggested fix for this (IE8+, FF3.5+, CH2+) is below:
.input-append .add-on:last-of-type, .input-append .btn:last-child {
-webkit-border-radius: 0 3px 3px 0;
-moz-border-radius: 0 3px 3px 0;
border-radius: 0 3px 3px 0;
}