If I have a bootstrap grid. There is no space between the rows despite the gy-5
However if I change class="grid"
to class="row"
then there is space. But that doesn't make sense to me, why would I want a row of 3 rows? There's something I don't understand about how this works.
Fiddle here: https://jsfiddle.net/xpusostomos/03wqa5x6/2/
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
</head>
<body>
<div class="grid">
<div class="row gy-5">
<div class="col-md-2">
Select:
</div>
<div class="col-md-4">
<label class="form-check-label" for="mapped">
<input id="mapped" class="form-check-input" type="checkbox" [(ngModel)]="mapped"
(change)="change(true)"/>
Mapped</label>
</div>
<div class="col-md-5">
<label class="form-check-label" for="unmapped">
<input id="unmapped" class="form-check-input" type="checkbox" [(ngModel)]="unmapped"
(change)="change(true)"/>
Unmapped</label>
</div>
</div>
<div class="row gy-5">
<div class="col-md-2">
Show:
</div>
<div class="col-md-4">
<label class="form-check-label" for="summary">
<input id="summary" class="form-check-input" type="radio" [(ngModel)]="detail" [value]="false"
(change)="change(false)"/>
Summary</label>
</div>
<div class="col-md-5">
<label class="form-check-label" for="detail">
<input id="detail" class="form-check-input" type="radio" [(ngModel)]="detail" [value]="true"
(change)="change(false)"/>
Detail</label>
</div>
</div>
<div class="row gy-5">
<div class="col-md-2">
Group:
</div>
<div class="col-md-10">
<label class="form-check-label" for="detail">
<input id="mapGrouped" class="form-check-input" type="checkbox" [(ngModel)]="mapGrouped"
[value]="true" (change)="change()"/>
Mapped Status</label>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
</body>