Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some of the line-heights in the text characteristic have been calculated inconsistently #4224

Open
1 of 11 tasks
joshwooding opened this issue Oct 3, 2024 · 3 comments
Open
1 of 11 tasks
Labels
package: theme Theme package type: bug 🪲 Something isn't working

Comments

@joshwooding
Copy link
Contributor

joshwooding commented Oct 3, 2024

Latest version

  • I have tested the latest version

Description

The line-heights with the formula: round(font-size * 1.3).

image

The top table is current, the bottom in next.
The numbers marked in red are incorrect. lh = line height, e lh = expected line height.

Steps to reproduce

.

Expected behavior

No response

Package name(s)

Theme (@salt-ds/theme)

Package version(s)

No response

Browser

  • Chrome
  • Safari
  • Firefox
  • Microsoft Edge

Operating system

  • macOS
  • Windows
  • Linux
  • iOS
  • Android

Are you a JPMorgan Chase & Co. employee?

  • I am an employee of JPMorgan Chase & Co.
@origami-z
Copy link
Contributor

I can not recall any odd number line height occurs in memory, where in the process does this fall apart?

@joshwooding
Copy link
Contributor Author

I can not recall any odd number line height occurs in memory, where in the process does this fall apart?

We do have odd number line-heights (some of the display text), but I've mentioned it in #4226 that you get a worse outcome. #4223 is caused by this.

@joshwooding
Copy link
Contributor Author

joshwooding commented Oct 3, 2024

@pseys @origami-z I think h1 in td next was missed in any previous next text work. I believe in Figma it's already been changed to 55px but code still uses 54px

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: theme Theme package type: bug 🪲 Something isn't working
Projects
Development

No branches or pull requests

2 participants