diff options
| author | Mark Otto <[email protected]> | 2016-10-02 18:28:37 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-10-02 18:28:37 -0700 |
| commit | 59d067925084aa8bb5b5b9fa775fa6be85d64937 (patch) | |
| tree | 3bc95a861e9249cf18e96c890c0f799906be9cef /scss/_forms.scss | |
| parent | 18b14d3c9f8cb4f0aa056709487ebbe27a3ebfa4 (diff) | |
| download | bootstrap-59d067925084aa8bb5b5b9fa775fa6be85d64937.tar.xz bootstrap-59d067925084aa8bb5b5b9fa775fa6be85d64937.zip | |
Only override input border-radius as part of .form-control to avoid bug with iOS Safari (alt fix for #20247) (#20695)
Diffstat (limited to 'scss/_forms.scss')
| -rw-r--r-- | scss/_forms.scss | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scss/_forms.scss b/scss/_forms.scss index 6ea5d3dbc..59465ee6c 100644 --- a/scss/_forms.scss +++ b/scss/_forms.scss @@ -18,8 +18,16 @@ background-image: none; background-clip: padding-box; 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. - @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 transition(border-color ease-in-out .15s, box-shadow ease-in-out .15s); |
