I'm struggling to find a way to center my text with the icon properly. This issue is only happening in Google Chrome. You can view the problem in action on this code snippet.
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
.row {
background: #f8f9fa;
margin-top: 20px;
}
.col {
border: solid 1px #6c757d;
padding: 10px;
}
<link href="//stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" rel="stylesheet" />
<label class="badge badge-secondary align-middle">
<span class="pb-2">Text Should Be Vertically Centered</span>
<i class="material-icons md-18">cancel</i>
</label>
Any advice or solution would be greatly appreciated!
Illustration of the issue: