diff --git a/.reports/embedded-react-sdk.api.md b/.reports/embedded-react-sdk.api.md
index 8d1dc12ed..cd6416f7e 100644
--- a/.reports/embedded-react-sdk.api.md
+++ b/.reports/embedded-react-sdk.api.md
@@ -815,7 +815,7 @@ export interface BoxHeaderProps {
// @public
export interface BoxProps {
- children: ReactNode;
+ children?: ReactNode;
className?: string;
footer?: ReactNode;
header?: ReactNode;
diff --git a/docs/reference/component-inventory.md b/docs/reference/component-inventory.md
index 8a8f3aa7b..2881cc515 100644
--- a/docs/reference/component-inventory.md
+++ b/docs/reference/component-inventory.md
@@ -221,7 +221,7 @@ Renders a sectioned layout container with distinct header, body, and footer area
| Property | Type | Description |
| ------ | ------ | ------ |
-| `children` | `ReactNode` | Content rendered inside the box body. |
+| `children?` | `ReactNode` | Content rendered inside the box body. |
| `className?` | `string` | CSS className to be applied to the root element. |
| `footer?` | `ReactNode` | Optional content rendered below the body in the box footer section. |
| `header?` | `ReactNode` | Optional content rendered above the body in the box header section. |
diff --git a/src/components/Common/UI/Box/Box.module.scss b/src/components/Common/UI/Box/Box.module.scss
index f7fc6d114..83002af78 100644
--- a/src/components/Common/UI/Box/Box.module.scss
+++ b/src/components/Common/UI/Box/Box.module.scss
@@ -28,3 +28,7 @@
padding: toRem(20);
border-top: 1px solid var(--g-colorBorderSecondary);
}
+
+.header + .footer {
+ border-top: none;
+}
diff --git a/src/components/Common/UI/Box/Box.tsx b/src/components/Common/UI/Box/Box.tsx
index b88d12405..1d4dbdf64 100644
--- a/src/components/Common/UI/Box/Box.tsx
+++ b/src/components/Common/UI/Box/Box.tsx
@@ -13,7 +13,9 @@ export function Box({ children, header, footer, withPadding = true, className }:
return (
{header &&
{header}
}
-
{children}
+ {children && (
+
{children}
+ )}
{footer &&
{footer}
}
)
diff --git a/src/components/Common/UI/Box/BoxTypes.ts b/src/components/Common/UI/Box/BoxTypes.ts
index 0261a2108..5661f2085 100644
--- a/src/components/Common/UI/Box/BoxTypes.ts
+++ b/src/components/Common/UI/Box/BoxTypes.ts
@@ -11,7 +11,7 @@ export interface BoxProps {
/**
* Content rendered inside the box body.
*/
- children: ReactNode
+ children?: ReactNode
/**
* Optional content rendered above the body in the box header section.
*/
diff --git a/src/components/Payroll/PayrollList/PayrollListPresentation.module.scss b/src/components/Payroll/PayrollList/PayrollListPresentation.module.scss
index 5424ccf9c..aeef8394a 100644
--- a/src/components/Payroll/PayrollList/PayrollListPresentation.module.scss
+++ b/src/components/Payroll/PayrollList/PayrollListPresentation.module.scss
@@ -20,22 +20,11 @@
white-space: nowrap;
}
-.offCycleCta[data-testid] {
- background-color: var(--g-colorBodyAccent);
-}
-
-.offCycleCtaText {
- display: flex;
- flex-direction: column;
- gap: toRem(4);
- min-width: 0;
+.offCycleCta {
+ width: 100%;
+ max-width: toRem(640);
}
.menuPlaceholder {
visibility: hidden;
}
-
-.offCycleCtaButton {
- flex-shrink: 0;
- white-space: nowrap;
-}
diff --git a/src/components/Payroll/PayrollList/PayrollListPresentation.tsx b/src/components/Payroll/PayrollList/PayrollListPresentation.tsx
index a66719f80..66ff5321b 100644
--- a/src/components/Payroll/PayrollList/PayrollListPresentation.tsx
+++ b/src/components/Payroll/PayrollList/PayrollListPresentation.tsx
@@ -94,7 +94,7 @@ export const PayrollListPresentation = ({
dateRangeFilter,
hasUnprocessedTransitions = false,
}: PayrollListPresentationProps) => {
- const { Box, Button, ButtonIcon, Dialog, Heading, Text, Alert } = useComponentContext()
+ const { Box, BoxHeader, Button, ButtonIcon, Dialog, Heading, Text, Alert } = useComponentContext()
useI18n('Payroll.PayrollList')
const { t } = useTranslation('Payroll.PayrollList')
const dateFormatter = useDateFormatter()
@@ -453,26 +453,21 @@ export const PayrollListPresentation = ({
>
{t('deletePayrollDialog.body')}
-
-
-
- {t('offCycleCta.title')}
-
- {t('offCycleCta.description')}
-
-
-
+
+
+ }
+ footer={
-
-
-
+ }
+ />
+
)