diff --git a/src/lib/components/form/Form.component.tsx b/src/lib/components/form/Form.component.tsx index ace34160e2..e44526315d 100644 --- a/src/lib/components/form/Form.component.tsx +++ b/src/lib/components/form/Form.component.tsx @@ -45,11 +45,13 @@ type PageFormProps = { } & FormProps; type TabFormProps = { layout: { kind: 'tab' } } & FormProps; -const PageFormWrapper = styled.form` +const StyledForm = styled.form` display: flex; flex-direction: column; align-items: stretch; height: 100%; + background-color: ${(props) => + props.layout.kind === 'page' && props.theme.backgroundLevel4}; `; const BasicPageLayout = styled.div<{ layoutKind: 'page' | 'tab' }>` @@ -288,7 +290,7 @@ const PageForm = forwardRef( const requireMode = useContext(RequireModeContext); return ( - + @@ -342,7 +344,7 @@ const PageForm = forwardRef( - + ); }, @@ -352,7 +354,7 @@ const TabForm = forwardRef( ({ leftActions, rightActions, children, banner, ...formProps }, ref) => { return ( - +
{leftActions}
@@ -368,7 +370,7 @@ const TabForm = forwardRef( -
+
); },