Alignment issue in boolean operation

Hi,
I used material guidelines to create a button, and I gave the icon a boolean operation to control whether it was visible or not.
Everything works as it should when the icon toggle is turned on, but when I turn off the toggle i.e. hide the icon, the text does not centre itself. I want padding of 24 pixels on both sides.

Here’s the file link: https://www.figma.com/file/zpBzYV026xs2gA0zceVbtP/Untitled?node-id=1%3A9&t=8MMLg5hNRXCevgq3-1

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.