From 996685c24f547b3801e69ea5715a71c3ce78d8c8 Mon Sep 17 00:00:00 2001 From: aPreciado88 Date: Mon, 2 Dec 2024 15:09:07 -0800 Subject: [PATCH] fix(panel): add correct heading and description line height and alignment --- .../src/components/panel/panel.scss | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/packages/calcite-components/src/components/panel/panel.scss b/packages/calcite-components/src/components/panel/panel.scss index 6e986fd34b2..3339939d9f5 100644 --- a/packages/calcite-components/src/components/panel/panel.scss +++ b/packages/calcite-components/src/components/panel/panel.scss @@ -44,11 +44,11 @@ .header-content { .heading { - @apply text-n1h; + font-size: var(--calcite-font-size--1); } .description { - @apply text-n2h; + font-size: var(--calcite-font-size--2); } } } @@ -59,11 +59,11 @@ .header-content { .heading { - @apply text-0h; + font-size: var(--calcite-font-size-0); } .description { - @apply text-n1h; + font-size: var(--calcite-font-size--1); } } } @@ -74,11 +74,11 @@ .header-content { .heading { - @apply text-1h; + font-size: var(--calcite-font-size-1); } .description { - @apply text-0h; + font-size: var(--calcite-font-size-0); } } } @@ -145,16 +145,19 @@ py-3.5; margin-inline-end: auto; + justify-content: center; .heading, .description { @apply block - break-words - p-0; + flex-none + break-words + p-0; + line-height: var(--calcite-font-line-height-relative-snug); } .heading { - @apply mx-0 mt-0 mb-1 font-medium; + @apply font-medium; color: var(--calcite-panel-heading-text-color, var(--calcite-color-text-1)); &:only-child {