Skip to content

Commit

Permalink
fix(type): fix heading type styles based on guidance and design kit (#…
Browse files Browse the repository at this point in the history
…12037)

* fix(type): fix heading type styles based on guidance and design kit

* chore: update type style test snapshot
  • Loading branch information
janhassel authored Sep 8, 2022
1 parent 0454a87 commit 39c596d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions packages/styles/scss/__tests__/__snapshots__/type-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1961,7 +1961,7 @@ Object {
Object {
"position": Position {
"end": Object {
"column": 62,
"column": 66,
"line": 182,
},
"source": undefined,
Expand All @@ -1972,7 +1972,7 @@ Object {
},
"property": "font-size",
"type": "declaration",
"value": "var(--cds-productive-heading-06-font-size, 2rem)",
"value": "var(--cds-productive-heading-06-font-size, 2.625rem)",
},
Object {
"position": Position {
Expand Down Expand Up @@ -2055,7 +2055,7 @@ Object {
},
"property": "font-size",
"type": "declaration",
"value": "var(--cds-productive-heading-07-font-size, 2.625rem)",
"value": "var(--cds-productive-heading-07-font-size, 3.375rem)",
},
Object {
"position": Position {
Expand Down Expand Up @@ -7617,7 +7617,7 @@ Object {
Object {
"position": Position {
"end": Object {
"column": 51,
"column": 55,
"line": 756,
},
"source": undefined,
Expand All @@ -7628,7 +7628,7 @@ Object {
},
"property": "font-size",
"type": "declaration",
"value": "var(--cds-heading-06-font-size, 2rem)",
"value": "var(--cds-heading-06-font-size, 2.625rem)",
},
Object {
"position": Position {
Expand Down Expand Up @@ -7711,7 +7711,7 @@ Object {
},
"property": "font-size",
"type": "declaration",
"value": "var(--cds-heading-07-font-size, 2.625rem)",
"value": "var(--cds-heading-07-font-size, 3.375rem)",
},
Object {
"position": Position {
Expand Down
4 changes: 2 additions & 2 deletions packages/type/scss/_styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ $heading-05: $productive-heading-05 !default;
/// @access public
/// @group @carbon/type
$productive-heading-06: (
font-size: scale.type-scale(8),
font-size: scale.type-scale(10),
font-weight: font-family.font-weight('light'),
// Extra digit needed for precision in Chrome
line-height: 1.199,
Expand All @@ -273,7 +273,7 @@ $heading-06: $productive-heading-06 !default;
/// @access public
/// @group @carbon/type
$productive-heading-07: (
font-size: scale.type-scale(10),
font-size: scale.type-scale(12),
font-weight: font-family.font-weight('light'),
line-height: 1.19,
letter-spacing: 0,
Expand Down

0 comments on commit 39c596d

Please sign in to comment.