I have a flex-container with 2 flex-items.
<div className="flexContainer">
<div className="FlexItem1"></div>
<div className="FlexItem2"></div>
</div>
Both flex items have:
flex-grow: 1;
flex item 2 is:
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
Now I add grid items into grid container(grid items = default buttons).
Problem: These grid items increasing the width of the grid container.
Questions: Why are the default grid items increasing the width of its container here? What is the best way to ensure the flex items stay 50-50 in width, regardless of what happens inside the flex items?