After working with Bootstrap 4 in my Angular 12 project for some time, I decided to upgrade to Bootstrap 5 today. While I know that some properties have changed, I thought the grid system remained unchanged.
I often use "Mix and Match" columns as described in the documentation, such as:
<div class="container">
<div class="row">
<div class="col-12 col-sm"></div>
<div class="col-12 col-sm-auto"></div>
<div class="col-12 col-sm"></div>
</div>
</div>
This setup worked perfectly fine with Bootstrap v4.*, but it's not functioning properly with v5.
The intended layout is to have only one row where the first and third columns expand to fill all available space, while the second column adjusts based on its content.
Upon inspecting Chrome DevTools, I noticed that the col-12 class seems to take precedence over col-sm even on larger screens.
https://i.sstatic.net/aud55.png
Any suggestions on how to tackle this issue?