Question
Cannot center text on fixed height background in responsive: no decimal padding.
- April 12, 2022
- 1 reply
- 343 views
This is odd behaviour. I have specifications for a button 28px height with 12px (pt in XD) text.
I make it component to be reused with variations. To make text flexible I make it reponsive.
Well, the top and bottom paddings are 7 and 6. I cannot center the text.
If it is not responsive I can center text manually and the spacing becomes 6.5 both top and bottom. But in responsive I cannot give decimal point padding. We can not change button sizes just because of this. Tried it in Figma, it has no issues creating decimal padding. I also played with line height but that doesn't help in XD.
