After migrating to webpack for managing our assets (js, scss, ...), everything seemed to be working smoothly. However, we encountered a minor issue where the input label behind the file-selector-button is overflowing with its neighbor, as shown in the examples below. This problem persists even when using only default bootstrap styles without any additional modifications.
https://i.sstatic.net/agVjh.png https://i.sstatic.net/cjcAZ.png
Our basic webpack application configuration includes:
import "bootstrap/scss/bootstrap.scss";
import "bootstrap-icons/font/bootstrap-icons.css"
// [...]
import "bootstrap";
In the first example snippet:
<div class="row pb-3">
<div class="col">
<input class="form-control" type="file" name="uploadFile" id="uploadFile" required>
<div class="invalid-feedback">
Please select a file
</div>
</div>
</div>
The second example is taken from Bootstrap Docs
Even inspecting the page with tools like Google Chrome did not provide a solution to this issue. I am currently using Bootstrap 5.2.0 (tested on 5.2.2, 5.1.x, etc., with the same results) and have not made any additional modifications to the bootstrap framework itself.