Skip to content

Commit

Permalink
fix(panel, flow-item): fix footer-padding CSS prop regression (#9757)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfranco authored and github-actions[bot] committed Jul 30, 2024
1 parent b8e0aea commit f935790
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions packages/calcite-components/src/components/panel/panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@
@import "../../assets/styles/header";

:host([scale="s"]) {
.content-top,
.content-bottom,
.footer,
.header-content {
padding: var(--calcite-spacing-sm);
}
--calcite-internal-panel-default-padding: var(--calcite-spacing-sm);

.header-content {
.heading {
Expand All @@ -38,12 +33,7 @@
}

:host([scale="m"]) {
.content-top,
.content-bottom,
.footer,
.header-content {
padding: var(--calcite-spacing-md);
}
--calcite-internal-panel-default-padding: var(--calcite-spacing-md);

.header-content {
.heading {
Expand All @@ -57,12 +47,7 @@
}

:host([scale="l"]) {
.content-top,
.content-bottom,
.footer,
.header-content {
padding: var(--calcite-spacing-xl);
}
--calcite-internal-panel-default-padding: var(--calcite-spacing-xl);

.header-content {
.heading {
Expand All @@ -79,7 +64,6 @@
.content-bottom {
@apply flex items-start self-stretch;

padding: var(--calcite-spacing-md);
border-block-start: 1px solid var(--calcite-color-border-3);
background-color: var(--calcite-color-foreground-1);
}
Expand Down Expand Up @@ -178,11 +162,17 @@
h-full;
}

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

.footer {
@apply flex mt-auto flex-row content-between justify-center items-center bg-foreground-1;

border-block-start: 1px solid var(--calcite-color-border-3);
padding: var(--calcite-spacing-sm);
padding: var(--calcite-panel-footer-padding, var(--calcite-internal-panel-default-padding));
column-gap: 0;
row-gap: var(--calcite-spacing-md);
}
Expand Down

0 comments on commit f935790

Please sign in to comment.