Figma Support Forum

Why Line height allows only % in object properties and % or px in styles?

When editing the style of a text object individually, the Line Height only allows for % values:

But when editing the same Line Height property as a Style, the input accepts % and px:

Is this a bug?

It shouldn’t be like that. You can specify in percent or pixels both there and there. Try reloading the file.

Yeah you should be able to just clear the percentage which would put it into pixels. You can also type px at the end of the number.

thanks guys! you’re right, for some reason if i create a new file it works perfectly, but that file seems to be broken because it doesnt let me change to px hehe, ill just move everything to a new file, thanks!

Hmm yeah that’s strange. refreshing/reloading the file doesn’t work either?