Skip to content

Commit

Permalink
fix(block): remove top padding when no heading is defined (#9782)
Browse files Browse the repository at this point in the history
**Related Issue:**
[#9753](#9753)

## Summary
Updates component to have no top padding when `heading` is not defined.
  • Loading branch information
aPreciado88 authored Jul 15, 2024
1 parent e821535 commit d71e064
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/calcite-components/src/components/block/block.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

.header {
@apply justify-start;
padding: var(--calcite-spacing-md);
}

.header,
Expand Down Expand Up @@ -195,4 +194,11 @@ calcite-action-menu {
}
}

:host([heading]),
:host([description]) {
.header {
padding: var(--calcite-spacing-md);
}
}

@include base-component();

0 comments on commit d71e064

Please sign in to comment.