diff --git a/packages/calcite-components/src/components/dialog/dialog.scss b/packages/calcite-components/src/components/dialog/dialog.scss
index d0d0223a3d8..dc503556520 100644
--- a/packages/calcite-components/src/components/dialog/dialog.scss
+++ b/packages/calcite-components/src/components/dialog/dialog.scss
@@ -6,6 +6,7 @@
* @prop --calcite-dialog-scrim-background-color: Specifies the background color of the component's scrim.
* @prop --calcite-dialog-size-x: Specifies the width of the component, using `px`, `em`, `rem`, `vw`, or `%`. Does not exceed the viewport's width - applies when `placement="cover"` is set.
* @prop --calcite-dialog-size-y: Specifies the height of the component, using `px`, `em`, `rem`, `vh`, or `%`. Does not exceed the viewport's height - applies when `placement="cover"` is set.
+ * @prop --calcite-dialog-content-space: Specifies the padding of the component's content.
* @prop --calcite-dialog-footer-space: Specifies the padding of the component's footer.
* @prop --calcite-dialog-border-color: Specifies the component's border color.
*/
@@ -75,6 +76,7 @@
}
:host([scale="s"]) {
+ --calcite-internal-dialog-content-padding: var(--calcite-spacing-sm);
--calcite-internal-dialog-padding: theme("spacing.3");
--calcite-internal-dialog-padding-large: theme("spacing.4");
--calcite-internal-dialog-title-text: theme("fontSize.1h");
@@ -82,6 +84,7 @@
}
:host([scale="m"]) {
+ --calcite-internal-dialog-content-padding: var(--calcite-spacing-md);
--calcite-internal-dialog-padding: theme("spacing.4");
--calcite-internal-dialog-padding-large: theme("spacing.5");
--calcite-internal-dialog-title-text: theme("fontSize.2h");
@@ -89,6 +92,7 @@
}
:host([scale="l"]) {
+ --calcite-internal-dialog-content-padding: var(--calcite-spacing-lg);
--calcite-internal-dialog-padding: theme("spacing.5");
--calcite-internal-dialog-padding-large: theme("spacing.6");
--calcite-internal-dialog-title-text: theme("fontSize.3h");
@@ -113,6 +117,10 @@ calcite-panel {
--calcite-panel-header-border-block-end: var(--calcite-border-width-sm) solid var(--calcite-dialog-border-color);
}
+.content {
+ padding: var(--calcite-dialog-content-space, var(--calcite-internal-dialog-content-padding));
+}
+
.dialog {
@apply pointer-events-none
float-none
diff --git a/packages/calcite-components/src/components/dialog/dialog.stories.ts b/packages/calcite-components/src/components/dialog/dialog.stories.ts
index bab28c13b1c..88c3f796548 100644
--- a/packages/calcite-components/src/components/dialog/dialog.stories.ts
+++ b/packages/calcite-components/src/components/dialog/dialog.stories.ts
@@ -351,7 +351,8 @@ export const footerSlot = (): string => html`
`;
const themedStyle = html` --calcite-dialog-scrim-background-color: purple; --calcite-dialog-size-x: 400px;
---calcite-dialog-size-y: 400px; --calcite-dialog-footer-space: 50px; --calcite-dialog-border-color: pink;`;
+--calcite-dialog-size-y: 400px; --calcite-dialog-footer-space: 50px; --calcite-dialog-border-color: pink;
+--calcite-dialog-content-space: 50px;`;
export const themed = (): string =>
html` Slotted content!