diff --git a/src/components/CommonForm/commonForm.style.js b/src/components/CommonForm/commonForm.style.js index aafc464aa0b8..60525d09dc18 100644 --- a/src/components/CommonForm/commonForm.style.js +++ b/src/components/CommonForm/commonForm.style.js @@ -33,9 +33,10 @@ const CommonFormWrapper = styled.section` } .form-body{ -box-shadow: 0px 5px 5px 2px ${props => props.theme.primaryLightColor}; +box-shadow: 0px -2px 5px 2px ${props => props.theme.primaryLightColor}; margin: 1rem; + .form-title { padding: 1rem; text-align: center; @@ -45,6 +46,7 @@ margin: 1rem; .form{ font-size: .9rem; + width: fit-content !important; margin: 0 1rem 1rem; padding: 1rem; diff --git a/src/components/CommonForm/index.js b/src/components/CommonForm/index.js index 5cf5926c3326..a75190deb599 100644 --- a/src/components/CommonForm/index.js +++ b/src/components/CommonForm/index.js @@ -7,7 +7,7 @@ import { Container } from "../../reusecore/Layout"; import layer5_img from "../../assets/images/layer5/layer5-only/svg/layer5-white-no-trim.svg"; -const CommonForm = ({ form, title, submit_title, submit_body }) => { +const CommonForm = ({ form, title, submit_title, submit_body, submit_button_title }) => { const [stepNumber, setStepNumber] = useState(0); const [memberFormOne, setMemberFormOne] = useState({}); @@ -84,7 +84,11 @@ const CommonForm = ({ form, title, submit_title, submit_body }) => { { stepNumber === 0 &&
-

{title}

+ { form !== "contact" && ( + <> +

{title}

+ + )} {
+ {form === "contact" && ( + <> + + + + + {/* */} +
By providing my contact information, I authorize Layer5 to contact me with communications about Layer5's products and services.
+ + )} {form == "open-source-pricing" && ( <>