Containers wrong gutters padding in nested grids
Created by: dali-rajab
Hello !
I think that containers (.container
, .container-fluid
...) have wrong paddings when they are inside .rows
(no-matter the nesting level), and here is a little demo about this bug : https://codepen.io/dali-rajab/pen/bGWKrEQ
after debugging, i found that containers "left & right" paddings are inheriting the --bs-gutter-x value from the closest .row element, which is meaningless, because the purpose behind containers paddings is to counteract the .row
negative margins, so containers paddings depend on the descendent .row, therefore, there is no need for any kind of inheritence.
I'm preparing a PR to fix this.