Skip to content

Commit

Permalink
Merge pull request #18265 from twbs/fix-v4-17007
Browse files Browse the repository at this point in the history
Bring focused input group controls to front via z-index:3
  • Loading branch information
mdo committed Nov 30, 2015
2 parents 4563289 + 1e6f23c commit 94d7a8f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scss/_input-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
// proper border colors.
position: relative;
z-index: 2;
// Bring the "active" form control to the front
@include hover-focus-active {
z-index: 3;
}
@if $enable-flex {
flex: 1;
} @else {
Expand Down Expand Up @@ -160,7 +164,7 @@
}
// Bring the "active" button to the front
@include hover-focus-active {
z-index: 2;
z-index: 3;
}
}

Expand All @@ -176,6 +180,10 @@
> .btn-group {
z-index: 2;
margin-left: -1px;
// Because specificity
@include hover-focus-active {
z-index: 3;
}
}
}
}

0 comments on commit 94d7a8f

Please sign in to comment.