From 39c596d6638c8bcbdcb638f8cbca99e1cc51a9c2 Mon Sep 17 00:00:00 2001 From: Jan Hassel Date: Thu, 8 Sep 2022 22:24:58 +0200 Subject: [PATCH] fix(type): fix heading type styles based on guidance and design kit (#12037) * fix(type): fix heading type styles based on guidance and design kit * chore: update type style test snapshot --- .../scss/__tests__/__snapshots__/type-test.js.snap | 12 ++++++------ packages/type/scss/_styles.scss | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/styles/scss/__tests__/__snapshots__/type-test.js.snap b/packages/styles/scss/__tests__/__snapshots__/type-test.js.snap index 5ae9ed47e789..1a43f91fdf6c 100644 --- a/packages/styles/scss/__tests__/__snapshots__/type-test.js.snap +++ b/packages/styles/scss/__tests__/__snapshots__/type-test.js.snap @@ -1961,7 +1961,7 @@ Object { Object { "position": Position { "end": Object { - "column": 62, + "column": 66, "line": 182, }, "source": undefined, @@ -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 { @@ -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 { @@ -7617,7 +7617,7 @@ Object { Object { "position": Position { "end": Object { - "column": 51, + "column": 55, "line": 756, }, "source": undefined, @@ -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 { @@ -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 { diff --git a/packages/type/scss/_styles.scss b/packages/type/scss/_styles.scss index c80d8758877d..19ebe90b5151 100644 --- a/packages/type/scss/_styles.scss +++ b/packages/type/scss/_styles.scss @@ -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, @@ -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,