-
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
DSD-1924: Heading component mobile line height #1729
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
src/theme/components/heading.ts
Outdated
@@ -172,7 +172,7 @@ export const headings = { | |||
}, | |||
fontWeight: "heading.heading8", | |||
letterSpacing: "0", | |||
lineHeight: "1.50", | |||
lineHeight: { base: "1.50", md: "1.50" }, // This value is intensionally the same for mobile and desktop. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be able to just set this to lineHeight: "1.50"
and it should be set for both mobile and the medium breakpoint.
As an aside, is 1.50
not the same as 1.5
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. I will simplify and then update my comment to explain why this one is not setup to be responsive like the others.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, can you share documentation about the difference of 1.50
and 1.5
for line-height
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if it's true that those two values 1.50
and 1.5
are not the same so I was asking, but I can look for resources.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I read that as a statement and not as a question. Yes, 1.50
and 1.5
are numerically the same. However, the designer in me opted to use the same format as those that do require two decimal places. Symmetry. Consistency. All that.
Fixes JIRA ticket DSD-1924
This PR does the following:
Heading
component to addline-height
styles for mobile.How has this been tested?
Accessibility concerns or updates
Accessibility Checklist
aria-live
is used, a screenreader was used to verify the text is read.ref
s, focus management was reviewed.Open Questions
Checklist:
Front End Review: