Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 4adff4e

Browse files
author
Mike England
committed
Add styles to GravityForm
1 parent 15a91d2 commit 4adff4e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/molecules/GravityForm/GravityForm.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import Fields from './Fields'
44
import * as Yup from 'yup'
55
import getGfFieldId from '@/functions/gravityForms/getGfFieldId'
66
import {useState} from 'react'
7+
import styles from './GravityForm.module.css'
8+
import cn from 'classnames'
79

810
/**
911
* Render the GravityForm component.
@@ -54,7 +56,7 @@ export default function GravityForm({
5456

5557
return (
5658
<Form
57-
className={cssClass}
59+
className={cn(styles.gravityForm, cssClass)}
5860
formDefaults={fieldDefaults}
5961
id={formId && `gform-${formId}`}
6062
title={title}

0 commit comments

Comments
 (0)