mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-18 19:31:35 +02:00
Only override input border-radius as part of .form-control to avoid bug with iOS Safari (alt fix for #20247) (#20695)
This commit is contained in:
@@ -18,8 +18,16 @@
|
|||||||
background-image: none;
|
background-image: none;
|
||||||
background-clip: padding-box;
|
background-clip: padding-box;
|
||||||
border: $input-btn-border-width solid $input-border-color;
|
border: $input-btn-border-width solid $input-border-color;
|
||||||
|
|
||||||
// Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
|
// Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
|
||||||
@include border-radius($input-border-radius);
|
@if $enable-rounded {
|
||||||
|
// Manually use the if/else instead of the mixin to account for iOS override
|
||||||
|
border-radius: $input-border-radius;
|
||||||
|
} @else {
|
||||||
|
// Otherwise undo the iOS default
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
@include box-shadow($input-box-shadow);
|
@include box-shadow($input-box-shadow);
|
||||||
@include transition(border-color ease-in-out .15s, box-shadow ease-in-out .15s);
|
@include transition(border-color ease-in-out .15s, box-shadow ease-in-out .15s);
|
||||||
|
|
||||||
|
@@ -318,8 +318,6 @@ textarea {
|
|||||||
// properly inherited. However, `line-height` isn't addressed there. Using this
|
// properly inherited. However, `line-height` isn't addressed there. Using this
|
||||||
// ensures we don't need to unnecessarily redeclare the global font stack.
|
// ensures we don't need to unnecessarily redeclare the global font stack.
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
// iOS adds rounded borders by default
|
|
||||||
border-radius: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="radio"],
|
input[type="radio"],
|
||||||
|
Reference in New Issue
Block a user