Skip to content

Commit

Permalink
Add direct children selectors to avoid cascading styles into a menu f…
Browse files Browse the repository at this point in the history
…orm (twbs#25279)
  • Loading branch information
ysds authored and XhmikosR committed Jan 13, 2018
1 parent 6d8d863 commit f4bf054
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scss/_input-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
align-items: stretch;
width: 100%;

.form-control,
.custom-select,
.custom-file {
> .form-control,
> .custom-select,
> .custom-file {
position: relative; // For focus state's z-index
flex: 1 1 auto;
// Add width 1% and flex-basis auto to ensure that button will not wrap out
Expand All @@ -33,15 +33,15 @@
}
}

.form-control,
.custom-select {
> .form-control,
> .custom-select {
&:not(:last-child) { @include border-right-radius(0); }
&:not(:first-child) { @include border-left-radius(0); }
}

// Custom file inputs have more complex markup, thus requiring different
// border-radius overrides.
.custom-file {
> .custom-file {
display: flex;
align-items: center;

Expand Down

0 comments on commit f4bf054

Please sign in to comment.