Skip to content

Commit

Permalink
feat(type): nest values in breakpoint object (#7788)
Browse files Browse the repository at this point in the history
* feat(type): nest values in breakpoint object

* chore: update snapshots

Co-authored-by: emyarod <afw5059@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Feb 12, 2021
1 parent ddd3bb6 commit f94ee25
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@ exports[`styles expressiveParagraph01 should be printable 1`] = `
"font-size: 1.5rem;
font-weight: 300;
line-height: 1.334;
letter-spacing: 0;
lg: [object Object];
max: [object Object];"
letter-spacing: 0;"
`;

exports[`styles heading01 should be printable 1`] = `
Expand Down
16 changes: 9 additions & 7 deletions packages/type/src/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,15 @@ export const expressiveParagraph01 = {
fontWeight: fontWeights.light,
lineHeight: 1.334,
letterSpacing: 0,
lg: {
fontSize: rem(scale[6]),
lineHeight: 1.29,
},
max: {
fontSize: rem(scale[7]),
lineHeight: 1.25,
breakpoints: {
lg: {
fontSize: rem(scale[6]),
lineHeight: 1.29,
},
max: {
fontSize: rem(scale[7]),
lineHeight: 1.25,
},
},
};

Expand Down

0 comments on commit f94ee25

Please sign in to comment.