Custom button height different in grid view then other buttons?

Having an issue with a custom button I created to change the button icon based on fan speed set. The button itself works good however the height of the button is different than all the other buttons in a grid card I have created. I have tried specifying height which works somewhat but then the icon text is not aligned with the other buttons text. Any way I can make this work?