My checkboxes with btn-check have labels of varying lengths. I want all the labels to be aligned in the middle, but I can't figure out how to do it. The screenshot below illustrates the issue with the first checkbox. The content is not centered in the box.
https://i.sstatic.net/v8mEj.png
Here is the code snippet I am using:
<!doctype html>
<html lang="en>
<head>
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8fede0e0fbfcfbfdeeffcfbaa1bda1bc">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
</head>
<body>
<div class="container text-center">
<div class="row row-cols-1 row-cols-sm-2 row-cols-md-4">
<div class="col">
<div class="d-flex flex-wrap w-100 h-100">
<input type="checkbox" id="b" class="btn-check" value="b">
<!-- This label has the problem -->
<label for="b" class="btn btn-outline-primary align-middle ">
<span class="text-break">Lorem ipsum dolor<br><small class="text-muted">Lorem ipsum</small></span>
</label>
</div>
</div>
<div class="col">
<div class="d-flex flex-wrap w-100 h-100">
<input type="checkbox" id="a" class="btn-check" value="a">
<label for="a" class="btn btn-outline-primary ">
<span class="text-break">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.<br><small class="text-muted">Lorem ipsum </small></span>
</label>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2d4f4242595e595f4c5d6d18031f031e">[email protected]</a>/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
</body>
</html>
Can anyone help me figure out what I'm missing? Thanks!