You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a button that is using the "icon_state" layout, so not vertically arranged, and it's automatic arrangement is with the icon nearish the left side and the state text seemingly centered in a container to the right of the button.
I am wanting the icon and button centered, but specifically padding elements doesn't really work because the state text changes.
align-self, align-items, align-text haven't seemed to work because the icon and text appear to be in separate containers/divs and I don't know how to size and move those two elements as a single group.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I have a button that is using the "icon_state" layout, so not vertically arranged, and it's automatic arrangement is with the icon nearish the left side and the state text seemingly centered in a container to the right of the button.

I am wanting the icon and button centered, but specifically padding elements doesn't really work because the state text changes.
align-self, align-items, align-text haven't seemed to work because the icon and text appear to be in separate containers/divs and I don't know how to size and move those two elements as a single group.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions