Skip to content

Commit

Permalink
fix(panel, flow-item): fix header padding regression (#9936)
Browse files Browse the repository at this point in the history
**Related Issue:** #9921

## Summary

Fix unintentional header padding adjustment for medium/default scale.
  • Loading branch information
jcfranco authored and benelan committed Aug 2, 2024
1 parent 16d9d19 commit 90e9368
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/calcite-components/src/components/panel/panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

:host([scale="s"]) {
--calcite-internal-panel-default-padding: var(--calcite-spacing-sm);
--calcite-internal-panel-header-vertical-padding: 10px; // this should use a spacing token once made available

.header-content {
.heading {
Expand All @@ -34,6 +35,7 @@

:host([scale="m"]) {
--calcite-internal-panel-default-padding: var(--calcite-spacing-md);
--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-lg);

.header-content {
.heading {
Expand All @@ -48,6 +50,7 @@

:host([scale="l"]) {
--calcite-internal-panel-default-padding: var(--calcite-spacing-xl);
--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-xxl);

.header-content {
.heading {
Expand Down Expand Up @@ -163,11 +166,15 @@
}

.content-top,
.content-bottom,
.header-content {
.content-bottom {
padding: var(--calcite-internal-panel-default-padding);
}

.header-content {
padding-block: var(--calcite-internal-panel-header-vertical-padding);
padding-inline: var(--calcite-internal-panel-default-padding);
}

.footer {
@apply flex mt-auto flex-row content-between justify-center items-center bg-foreground-1 text-n2-wrap;
border-block-start: 1px solid var(--calcite-color-border-3);
Expand Down

0 comments on commit 90e9368

Please sign in to comment.