Currently utilizing Bootstrap 4 and encountering an issue that I can't seem to resolve. The height of the input-group-append
and input-group-prepend
elements increases when screen resolution is decreased. You can view the problem in the following animated gif
:
https://i.sstatic.net/g5YiX.gif
I've gone through the documentation for input-group
but can't identify any issues with my current code, as shown in the snippet below:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<hr/>
<div class="row">
<div class="col-xl-4 col-lg-4 col-md-4 col-sm-4 col-4">
<div class="row">
<div class="input-group input-group-sm mb-3 col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
<div class="input-group-prepend">
<span class="input-group-text" id="testPot">Power</span>
</div>
<select class="custom-select custom-select-sm">
<option value="value">text</option>
</select>
</div>
<div class="input-group input-group-sm mb-3 col-xl col-lg col-md col-sm col">
<input type="text" class="form-control">
<div class="input-group-append">
<span class="input-group-text">KVA</span>
</div>
</div>
<div class="input-group input-group-sm col-xl col-lg col-md col-sm col mb-3">
<div class="input-group-prepend">
<span class="input-group-text">Y</span>
</div>
<input type="text" class="form-control" name="name" value=""/>
<div class="input-group-append">
<span class="input-group-text">KVA</span>
</div>
</div>
</div>
</div>
</div>
<hr/>
Here's the codepen link where the gif was recorded, if you need another source to replicate the issue.
Is there a mistake on my end or is it a Bootstrap bug? How can this be resolved?
Thank you!