@@ -19,7 +25,12 @@ export default function Header({HeaderImage, Title, Description, Goal}: HeaderPr
return (
.givewp-layouts-header {
padding: 0;
+ background: #fff;
.givewp-layouts-multiStepForm, .givewp-layouts-header__templates-ms {
padding: 2rem 2rem 0 2rem;
@@ -125,13 +126,6 @@
}
}
- .givewp-layouts-headerTitle {
- color: var(--givewp-grey-900);
- }
-
- .givewp-layouts-headerDescription {
- color: var(--givewp-grey-700);
- }
.givewp-layouts-header__templates-ms {
.givewp-layouts-headerImage {
@@ -140,11 +134,19 @@
img {
object-fit: cover;
min-width: 100%;
- border-top-left-radius: 0.5rem;
- border-top-right-radius: 0.5rem;
+ border-top-left-radius: var(--givewp-rounded-8);
+ border-top-right-radius: var(--givewp-rounded-8);
}
}
+ .givewp-layouts-headerTitle {
+ color: var(--givewp-grey-900);
+ }
+
+ .givewp-layouts-headerDescription {
+ color: var(--givewp-grey-700);
+ }
+
&--background {
padding: 0;
@@ -167,7 +169,7 @@
}
- div:not(.givewp-layouts-headerImage), aside {
+ div:not(.givewp-layouts-headerImage, .givewp-layouts-header__content), aside {
position: relative;
z-index: 999;
}
@@ -205,7 +207,7 @@
.givewp-layouts-headerImage {
img {
border-radius: var(--givewp-rounded-4);
-
+ max-height: 320px;
}
}
diff --git a/src/DonationForms/resources/types.ts b/src/DonationForms/resources/types.ts
index f760d30730..16e0594ec7 100644
--- a/src/DonationForms/resources/types.ts
+++ b/src/DonationForms/resources/types.ts
@@ -231,6 +231,7 @@ export interface Form extends Group {
id: string;
name: string;
isMultiStep: boolean;
+ includeHeaderInMultiStep: boolean;
};
nodes: Section[];
currencySwitcherSettings?: CurrencySwitcherSetting[];
diff --git a/src/FormBuilder/resources/js/form-builder/src/components/onboarding/DesignSelector/images/two-panel-steps-design-screenshot.png b/src/FormBuilder/resources/js/form-builder/src/components/onboarding/DesignSelector/images/two-panel-steps-design-screenshot.png
new file mode 100644
index 0000000000..58827de91f
Binary files /dev/null and b/src/FormBuilder/resources/js/form-builder/src/components/onboarding/DesignSelector/images/two-panel-steps-design-screenshot.png differ
diff --git a/src/FormBuilder/resources/js/form-builder/src/components/onboarding/DesignSelector/index.tsx b/src/FormBuilder/resources/js/form-builder/src/components/onboarding/DesignSelector/index.tsx
index 97330b89e9..9768256a99 100644
--- a/src/FormBuilder/resources/js/form-builder/src/components/onboarding/DesignSelector/index.tsx
+++ b/src/FormBuilder/resources/js/form-builder/src/components/onboarding/DesignSelector/index.tsx
@@ -4,13 +4,16 @@ import {ShepherdTourContext} from 'react-shepherd';
import {__} from '@wordpress/i18n';
import DesignCard from './components/DesignCard';
-// @ts-ignore
import classDesignScreenshot from './images/classic-design-screenshot.png';
-
-// @ts-ignore
import multiStepDesignScreenshot from './images/multi-step-design-screenshot.png';
+import twoPanelStepsDesignScreenshot from './images/two-panel-steps-design-screenshot.png';
+
import {setFormSettings, useFormStateDispatch} from '@givewp/form-builder/stores/form-state';
+/**
+ * @unreleased Added Two-Panel (Steps) design option
+ * @since 3.0.0
+ */
export default ({onContinue}) => {
const tour = useContext(ShepherdTourContext);
@@ -66,6 +69,17 @@ export default ({onContinue}) => {
'give'
)}
/>
+ onDesignSelected('two-panel-steps')}
+ image={twoPanelStepsDesignScreenshot}
+ alt={__('Two-Panel (Steps) form design', 'give')}
+ title={__('Two-Panel (Steps)', 'give')}
+ description={__(
+ 'This has a side-by-side layout which breaks the sections of the donation process into steps.',
+ 'give'
+ )}
+ />