mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-05-17 16:31:07 +00:00
#27112: fix border focus border color
This commit is contained in:
parent
d1de8737aa
commit
e3c0b3d3af
2 changed files with 2 additions and 7 deletions
|
|
@ -258,10 +258,6 @@
|
||||||
&:focus ~ .custom-file-label {
|
&:focus ~ .custom-file-label {
|
||||||
border-color: $custom-file-focus-border-color;
|
border-color: $custom-file-focus-border-color;
|
||||||
box-shadow: $custom-file-focus-box-shadow;
|
box-shadow: $custom-file-focus-box-shadow;
|
||||||
|
|
||||||
&::after {
|
|
||||||
border-color: $custom-file-focus-border-color;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&:disabled ~ .custom-file-label {
|
&:disabled ~ .custom-file-label {
|
||||||
|
|
@ -303,7 +299,7 @@
|
||||||
color: $custom-file-button-color;
|
color: $custom-file-button-color;
|
||||||
content: "Browse";
|
content: "Browse";
|
||||||
@include gradient-bg($custom-file-button-bg);
|
@include gradient-bg($custom-file-button-bg);
|
||||||
border-left: $custom-file-border-width solid $custom-file-border-color;
|
border-left: inherit;
|
||||||
@include border-radius(0 $custom-file-border-radius $custom-file-border-radius 0);
|
@include border-radius(0 $custom-file-border-radius $custom-file-border-radius 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -180,8 +180,6 @@
|
||||||
&.is-#{$state} {
|
&.is-#{$state} {
|
||||||
~ .custom-file-label {
|
~ .custom-file-label {
|
||||||
border-color: $color;
|
border-color: $color;
|
||||||
|
|
||||||
&::after { border-color: inherit; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
~ .#{$state}-feedback,
|
~ .#{$state}-feedback,
|
||||||
|
|
@ -191,6 +189,7 @@
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
~ .custom-file-label {
|
~ .custom-file-label {
|
||||||
|
border-color: $color;
|
||||||
box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
|
box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue