-
Notifications
You must be signed in to change notification settings - Fork 601
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
feat: adding typeramp values #3050
Conversation
}) | ||
public typeRampMinus2Size: string; | ||
|
||
@attr({ ...fromView, attribute: "type-ramp-minus-2-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.
@bheston @nicholasrice do we want line-height
here or just height? How important are the semantics of the @attr
?
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.
If we do that I'd say we should also use "font-size" instead of "size" for consistency. I'm good with it, but curious on @bheston's feedback as this was the name that was outlined in the spec.
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 agree there - I don't think it's blocking but we use height elsewhere and it is a different property altogether. Similar with "size" to your point.
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 see that point, and considered it when writing the spec. I could go for being more explicit, but I think I was trying to keep it shorter and more generic than actual attribute names. I can't think of a way where being more explicit hurts us though, so maybe that's best. I just double-checked some of the other typography taxonomy work that's going on and they seem to be leaning toward full attribute names, so let's make that change. 👍
Description
Adds typeramp to the design-system provider as configurable design-system properties.
Motivation & context
Issue type checklist
Is this a breaking change?
Process & policy checklist