diff --git a/ui/src/components/form/layout/layout.module.scss b/ui/src/components/form/layout/layout.module.scss index 5a488a43a..60fdeaefd 100644 --- a/ui/src/components/form/layout/layout.module.scss +++ b/ui/src/components/form/layout/layout.module.scss @@ -57,9 +57,19 @@ gap: 16px; } +.formMessage { + width: 100%; + @include paragraph-small(); + padding: 8px 16px; + background-color: $color-success-100; + color: $color-success-700; + box-sizing: border-box; + border-radius: 6px; +} + .formError { width: 100%; - @include paragraph-x-small(); + @include paragraph-small(); padding: 8px 32px; background-color: $color-destructive-100; color: $color-destructive-600; @@ -72,6 +82,10 @@ } } +.intro { + font-weight: 600; +} + @media only screen and (max-width: $small-screen-breakpoint) { .section { margin: 16px; diff --git a/ui/src/components/form/layout/layout.tsx b/ui/src/components/form/layout/layout.tsx index 4cb7663dd..d58b7980d 100644 --- a/ui/src/components/form/layout/layout.tsx +++ b/ui/src/components/form/layout/layout.tsx @@ -2,6 +2,21 @@ import classNames from 'classnames' import { CSSProperties, ReactNode } from 'react' import styles from './layout.module.scss' +export const FormMessage = ({ + intro, + message, + style, +}: { + intro?: string + message: string + style?: CSSProperties +}) => ( +