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

feat: adding typeramp values #3050

Merged
merged 2 commits into from
May 1, 2020
Merged

Conversation

nicholasrice
Copy link
Contributor

@nicholasrice nicholasrice commented May 1, 2020

Description

Adds typeramp to the design-system provider as configurable design-system properties.

Motivation & context

Issue type checklist

  • Chore: A change that does not impact distributed packages.
  • Bug fix: A change that fixes an issue, link to the issue above.
  • New feature: A change that adds functionality.

Is this a breaking change?

  • This change causes current functionality to break.

Process & policy checklist

  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

})
public typeRampMinus2Size: string;

@attr({ ...fromView, attribute: "type-ramp-minus-2-height" })
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Collaborator

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. 👍

@nicholasrice nicholasrice merged commit dc8aa61 into master May 1, 2020
@nicholasrice nicholasrice deleted the users/nirice/add-typeramp-to-dsp branch May 1, 2020 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants