Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #6275
Closed
Open
Issue created Dec 14, 2012 by Administrator@rootContributor

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;
}

JSFiddle

Assignee
Assign to
Time tracking