I am experiencing an issue where the span elements in my button groups are not aligning properly. I am looking for a way to align these span elements within the button groups without using fixed widths.
Creating a basic web modal with Bootstrap 5
<div class="btn-group" role="group" aria-label="Basic checkbox toggle button group">
<span class="input-group-text" id="mode"><i class="bi bi-palette"></i>
Mode</span>
<input type="radio" class="btn-check" name="modeOptions" id="artist" autocomplete="off" checked>
<label class="btn btn-outline-primary" for="artist" onclick="displayType = 1;"
data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-html="true"
title="Play and Store Notes">Artist</label>
<input type="radio" class="btn-check" name="modeOptions" id="perfectionModeautocomplete=" off">
<label class="btn btn-outline-primary" for="perfectionMode" onclick="displayType = 2;"
data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-html="true"
title="Play along mode">Perfection</label>
</div>
<br> <br>
<div class="btn-group" role="group" aria-label="Basic checkbox toggle button group">
<span class="input-group-text" id="basic-addon1"><i class="bi bi-music-note-list"></i>
Notation Type</span>
<input type="radio" class="btn-check" name="options" id="staffNotation" autocomplete="off"
checked>
<label class="btn btn-outline-primary" for="staffNotation" onclick="displayType = 1;">Staff
Notation</label>
<input type="radio" class="btn-check" name="options" id="abcNotation" autocomplete="off">
<label class="btn btn-outline-primary" for="abcNotation" onclick="displayType = 2;">ABC
Notation</label>
<input type="radio" class="btn-check" name="options" id="srgNotation" autocomplete="off">
<label class="btn btn-outline-primary" for="srgNotation" onclick="displayType = 3;">Custom
Notation</label>
</div>