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
The Button component keeps vertical padding.
I tried add p={0} and py={0} prop on Button, but it only remove the horizontal padding.
Finally, I find that there is a height: 40 style on the button's container, so i add h={'auto'}, It works!
But it this the correct way to do this? Why and where height: 40 style prop come from?
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
-
The
Button
component keeps vertical padding.I tried add
p={0}
andpy={0}
prop on Button, but it only remove the horizontal padding.Finally, I find that there is a
height: 40
style on the button's container, so i addh={'auto'}
, It works!But it this the correct way to do this? Why and where
height: 40
style prop come from?Beta Was this translation helpful? Give feedback.
All reactions