Skip to content

Commit f4bf054

Browse files
ysdsXhmikosR
authored andcommitted
Add direct children selectors to avoid cascading styles into a menu form (#25279)
1 parent 6d8d863 commit f4bf054

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scss/_input-group.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
align-items: stretch;
1212
width: 100%;
1313

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

36-
.form-control,
37-
.custom-select {
36+
> .form-control,
37+
> .custom-select {
3838
&:not(:last-child) { @include border-right-radius(0); }
3939
&:not(:first-child) { @include border-left-radius(0); }
4040
}
4141

4242
// Custom file inputs have more complex markup, thus requiring different
4343
// border-radius overrides.
44-
.custom-file {
44+
> .custom-file {
4545
display: flex;
4646
align-items: center;
4747

0 commit comments

Comments
 (0)