Fix border-radius of form-control within input-group-append/input-group-prepend
See original GitHub issueThe border-radius
is wrong when form-control
is inside the input-group-append
or input-group-prepend
:
<div class="input-group">
<input type="text" class="form-control">
<div class="input-group-append">
<select class="form-control">
<option>years ago</option>
<option>months ago</option>
<option>weeks ago</option>
<option>days ago</option>
</select>
</div>
</div>
result:
I think this should be added to _input-group.scss
:
.input-group > .input-group-prepend > .form-control,
.input-group > .input-group-append:not(:last-child) > .form-control {
@include border-right-radius(0);
}
.input-group > .input-group-append > .form-control,
.input-group > .input-group-prepend:not(:first-child) > .form-control {
@include border-left-radius(0);
}
result:
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Bootstrap form input edges wont change from rounded to square
It seems like a specificity issue, modifying .form-group-sm .form-control { } removes the border radius. Share.
Read more >bootstrap.min.css | Drupal 9.1.x
Same filename and directory in other branches ... -height:1.5;color:#fff;background-color:rgba(220,53,69,.9);border-radius:.25rem}.form-control.is-invalid ...
Read more >Homepage - RPubs
... -height:1.5;border-radius:.2rem}.form-control-lg{height:calc(1.5em + ... :0}.input-group-append,.input-group-prepend{display:-ms-flexbox ...
Read more >GO! achieves environmental management certification
... ;line-height:1.5;border-radius:.2rem}.form-control-lg{height:calc(1.5em + ... }.input-group-append,.input-group-prepend{display:flex}.input-group-append ...
Read more >Blog: Counselor's Corner - Vineland Elementary School
Posted by kamara.johnson On 30 March, 2016 at 1:35 PM 43 Comments ... border-radius: 10px;" alt="Shopper Award" width="120" height="60" ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The statement stands; that’s not what those classes are intended to do, and we won’t explicitly support that behavior. You can, however, set
width: auto
(or soon,.w-auto
) on elements to reset this. The required HTML and CSS for these component is super tricky, it does limit what we can do.@mdo It doesn’t work with
width: auto
but works withflex: 0 0 auto; width:auto
. I think we should wait forw-auto
.