From 733b2c87878865b35f8a941b10ff8c1e89918cfd Mon Sep 17 00:00:00 2001 From: aPreciado88 Date: Mon, 15 Jul 2024 13:32:08 -0700 Subject: [PATCH 1/2] fix(block): remove top padding when no heading is defined --- .../calcite-components/src/components/block/block.scss | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/calcite-components/src/components/block/block.scss b/packages/calcite-components/src/components/block/block.scss index 24451975682..37e4ba92130 100644 --- a/packages/calcite-components/src/components/block/block.scss +++ b/packages/calcite-components/src/components/block/block.scss @@ -21,7 +21,6 @@ .header { @apply justify-start; - padding: var(--calcite-spacing-md); } .header, @@ -195,4 +194,10 @@ calcite-action-menu { } } +:host([heading]) { + .header { + padding: var(--calcite-spacing-md); + } +} + @include base-component(); From abee67653de86d3335cdb28b568718ac9d65a4d6 Mon Sep 17 00:00:00 2001 From: aPreciado88 Date: Mon, 15 Jul 2024 15:41:36 -0700 Subject: [PATCH 2/2] fix(block): add padding when description is defined --- packages/calcite-components/src/components/block/block.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/calcite-components/src/components/block/block.scss b/packages/calcite-components/src/components/block/block.scss index 37e4ba92130..040a6a47569 100644 --- a/packages/calcite-components/src/components/block/block.scss +++ b/packages/calcite-components/src/components/block/block.scss @@ -194,7 +194,8 @@ calcite-action-menu { } } -:host([heading]) { +:host([heading]), +:host([description]) { .header { padding: var(--calcite-spacing-md); }