Line height: should function as it does on the web
On the web, i often use line height to determin the height of the types container. Therefore the text should sit vertically centrally to its line height. This is different to how line height works in print.
I also use line height for vertical rhythm. see more info on this here:
vertical rhythm is a huge factor when I design for web
I am frustrated when I need to fix my components and whole layouts because of this!
I was wondering why on Earth my components differ between two MacBooks. I was trying to find the cause, and now I see what's going on. When I change the line-height it ruins the look of a button but when I keep it too high then the overall size of the button is wrong. Damn! Please Adobe fix this!
Two buttons: Font size: 14 px, Padding Top/Bottom: 12 px
- Figma gives me button height 40px
- XD gives me 43px because the line height is set to 24
- When I change it to 16px it looks weird, as the text goes down, and it looks like on top there is more than 12 px of padding.
Does anyone know of a plug-in to help with this????
How are we supposed to use the software without this feature???!!!
Dan Rodney commented
I would also add that it would be nice if we could use percentages (such as 150%) or unitless line heights (such as 1.5) as we do when coding line-height in CSS.
I couldn't believe this issue has not been resolved yet.
I'm not a Sketch guy, nor Figma guy, or XD guy - I use the tool that lets me do my job and with this line-height
I wouldn't be able to keep a consistent layout. If I expect devs to be pixel-perfect I should be pixel-perfect in the first place, especially if I'm putting together a pattern library/design system that will be used for multiple products.
I checked with Adobe Care this morning and they weren't able to provide me with a solution, I got the "thank you- we will pass it to product team'. Pretty sure product team is aware since it's been reported since 2017...
More than 3years that I'm waiting for this "BASIC" featuring.
So the question today is: are you made this featuring asap. If not I will stop using adobe xd and I will work with Figma.
Junior Wu commented
Please fix this bug!
Juan Encalada commented
Super important. This is the way it works in code and without the feature, designs can be different than in code.
Matěj Kříž commented
It is also unable to set lower line-height values then some critical value.
Hello? Any updates?
Artavazd Baghdasaryan commented
I really need this feature in XD!
Here is example of line-height not changing the height of the text object.
yullo seo commented
4 years have passed. I'm angry
Make it the same as the actual work
Basic in basic
4 years have passed. I'm angry
4년이 지난 지금도 고쳐지지않고 있네요. 화가 나요. 빠른 개선이 안된다면 툴을 Figma나 sketch로 바꿀까 고려중입니다. 그러니 빨리 업데이트해주세요!
Thomas Hale commented
Crucial for emulating implementations where line height is used over padding to vertically situate text. Please implement!
Stephen Brown commented
I use line height to place text centered verically in a button in css. This is not represented by XD well. Working from XD documents and building HTML pages needs to be made easy. Is XD not for the web or is it for print?
Torbjörn Hedberg commented
Please fix this rather than adding new functions!