Skip to content

Commit e482fbb

Browse files
authored
fix(input-group): custom-file with validation (#33239)
1 parent 8133c3e commit e482fbb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scss/_input-group.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,14 @@
5252
align-items: center;
5353

5454
&:not(:last-child) .custom-file-label,
55+
&:not(:last-child) .custom-file-label::after { @include border-right-radius(0); }
5556
&:not(:first-child) .custom-file-label { @include border-left-radius(0); }
5657
}
5758

5859
&:not(.has-validation) {
5960
> .form-control:not(:last-child),
6061
> .custom-select:not(:last-child),
62+
> .custom-file:not(:last-child) .custom-file-label,
6163
> .custom-file:not(:last-child) .custom-file-label::after {
6264
@include border-right-radius(0);
6365
}
@@ -66,6 +68,7 @@
6668
&.has-validation {
6769
> .form-control:nth-last-child(n + 3),
6870
> .custom-select:nth-last-child(n + 3),
71+
> .custom-file:nth-last-child(n + 3) .custom-file-label,
6972
> .custom-file:nth-last-child(n + 3) .custom-file-label::after {
7073
@include border-right-radius(0);
7174
}

0 commit comments

Comments
 (0)