-
Notifications
You must be signed in to change notification settings - Fork 7
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
Line height tokens should not have units #54
Comments
This is a debate to take back to the design team. When the latest gen of tokens was created this was a debate between myself and the lead designer at the time. In the end, the use of units was not accidental. Is there a situation where the use of these tokens in production is causing issues with the development of UIs? There is a growing discussion about the use of typography and this is not something engineering can address alone. Who is the designer you are working with? I'd suggest raising this issue up to design leadership. This issue has been reassigned and re-labeled accordingly. |
I can understand why we'd want to define line height units on our height tokens for heading levels and such, so I retract my request to remove units from the height tokens. However, I think setting a default line-height value with a unit on Maybe this should be a WCSS issue instead? |
Yes. This is an issue regarding the expectation of type with design. Really, this is not even a WCSS issue, but something that needs to be proposed with the designers. I will mention this to the UI designers and see if there are things we need to address. |
# [3.6.0](v3.5.0...v3.6.0) (2022-01-28) ### Features * **new token release:** add new tier color tokens ([#54](#54)) ([5f73915](5f73915))
Describe the bug
The tokens used for line height in WCSS use rem units. Per MDN, line height values should be unitless.
WCSS uses
auro-text-body-height-default
to set a default line height, effectively setting line height to 24px regardless of font-size. At font sizes larger than 24px, the text will start to run into each other.https://github.com/AlaskaAirlines/WebCoreStyleSheets/blob/6fcc2f36af78655186cc501e5d31d6aa4924173b/src/_essentials.scss#L66
To Reproduce
See this CodePen for an example.
The second paragraph is
auro-size-xl
and the text starts to run into itself.Expected behavior
Line height does not have a unit
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
We ran into this in one of our sites and had to override the line-height to 1.5 in our styles.
The text was updated successfully, but these errors were encountered: