Skip to content

Commit e3c0b3d

Browse files
MartijnCuppensmdo
authored andcommitted
#27112: fix border focus border color
1 parent d1de873 commit e3c0b3d

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

scss/_custom-forms.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,6 @@
258258
&:focus ~ .custom-file-label {
259259
border-color: $custom-file-focus-border-color;
260260
box-shadow: $custom-file-focus-box-shadow;
261-
262-
&::after {
263-
border-color: $custom-file-focus-border-color;
264-
}
265261
}
266262

267263
&:disabled ~ .custom-file-label {
@@ -303,7 +299,7 @@
303299
color: $custom-file-button-color;
304300
content: "Browse";
305301
@include gradient-bg($custom-file-button-bg);
306-
border-left: $custom-file-border-width solid $custom-file-border-color;
302+
border-left: inherit;
307303
@include border-radius(0 $custom-file-border-radius $custom-file-border-radius 0);
308304
}
309305
}

scss/mixins/_forms.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,6 @@
180180
&.is-#{$state} {
181181
~ .custom-file-label {
182182
border-color: $color;
183-
184-
&::after { border-color: inherit; }
185183
}
186184

187185
~ .#{$state}-feedback,
@@ -191,6 +189,7 @@
191189

192190
&:focus {
193191
~ .custom-file-label {
192+
border-color: $color;
194193
box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
195194
}
196195
}

0 commit comments

Comments
 (0)