Is there any possibility to keep the spacing at 12px when I add two buttons next to each other when changing the label text(s) inside the buttons?
Currently, the two buttons overlap each other.
Hi, Nassera.
Yes. That’s possible using auto-layout.
More about auto-layout here: https://help.figma.com/hc/en-us/articles/5731482952599-Using-auto-layout
On this kind of elements, on too of what @Raphael_M explained, we also add:
constrain the text in the button to a single line (aovid wrapping caused by the next point) https://help.figma.com/hc/en-us/articles/360039956634-Explore-text-properties#truncate
add a max-width to the wrapper so you don’t have strange extra large buttons https://help.figma.com/hc/en-us/articles/360040451373-Explore-auto-layout-properties#h_01HB9Q1371C7FP7ZPSEHDN1A9B
make the text fill the autolayout wrapping container.
Thank you @Raphael_M, I’ll check it out!
Also thanks for sharing these links @Bogriceanu_Sorin
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.