Incorporating bootstrap 4 and material icons into my app has presented a challenge. Specifically, the issue arises when I attempt to create a button that contains both text and an icon.
.button-icon {
vertical-align: middle;
}
<button class="button-icon">
<i class="material-icons">account_box</i>
My Account
</button>
Adjusting the font size of the icon only results in inconsistency with other icons on the page.
My goal is to simply align the text and the icon at the center. Any assistance on this matter would be greatly appreciated. Thank you.