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
  • #15684
Closed
Open
Issue created Jan 27, 2015 by Administrator@rootContributor

input type="hidden" causes border-radius issues in form.btn-group > .btn

Created by: tomhv

  • Browser: Chrome version 40.0.2214.91 m
  • Bootstrap: 3.3.2
  • Expected: 4px border-radius on all four corners of
  • Got: 4px border-radius on left; 0px border-radius on right
  • JSFiddle: http://jsfiddle.net/mqov56r8/
    <div class="btn-group" role="group" aria-label="...">
        <form class="btn-group">
            <button type="button" class="btn btn-default">Right</button>        
            <input type="hidden" name="_method" value="put" />
        </form>
    </div>

The rule in question seems to be:

    .btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle) {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

Changing the selector to the following fixes this issue, but may cause issues elsewhere:

    .btn-group>.btn:first-child:not(:last-of-type):not(.dropdown-toggle)

Cheers,

Tom

Assignee
Assign to
Time tracking