Figma Support Forum

Can't set 'hug content' (only possible if editing text)

when I try to set hug content to the text left and right from the button - it’s just don’t work. But if I edit text I CAN set it to hug. But in this case it sets the width of container as the text length, but I want it to be dynamic.

Thanks

Hi @smeliy, select the text layer and set it to Auto width in the Text section.

there is no such thing as auto width

I tried to “hug” it, but it’s just don’t set

Look carefully, in the Text section:
text-auto-width

thank you so much!