Skip to main content
Question

Text Box Vertical Alignment

  • August 30, 2024
  • 0 replies
  • 117 views

Fabian16

A problem I’m running into is that text layers within Figma aren’t vertically aligned within their bounding box. The additional space at the bottom of the text layer creates an offset that causes a disconnect between the dev build and the Figma components. Within the dev build, copying the Figma specs 1:1 results in the browser displaying the font vertically aligned within the button as it should. What would be the right approach to fix this to align the two?

I don’t want to depend on vertical trim as a solution because as far as I know, vertical trim is still something that’s being drafted and I don’t want to depend on a feature that a majority of browsers don’t support yet.

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings