Skip to content

Commit

Permalink
fix(695): Missing spacing between nested form fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivam-Gu authored and lordrip committed Feb 2, 2024
1 parent 0216887 commit bbcc976
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/NestField.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.nestfield-spacing {
display: grid;
gap: var(--pf-v5-c-form--GridGap);
}
3 changes: 2 additions & 1 deletion src/NestField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import * as React from "react";
import { connectField, filterDOMProps, HTMLFieldProps } from "uniforms";
import { Card, CardBody } from "@patternfly/react-core/dist/js/components/Card";
import AutoField from "./AutoField";
import './NestField.scss';

export type NestFieldProps = HTMLFieldProps<object, HTMLDivElement, { helperText?: string; itemProps?: object }>;

Expand All @@ -38,7 +39,7 @@ function NestField({
}: NestFieldProps) {
return (
<Card data-testid={"nest-field"} {...filterDOMProps(props)}>
<CardBody className="pf-c-form">
<CardBody className="pf-c-form nestfield-spacing">
{label && (
<label>
<b>{label}</b>
Expand Down

0 comments on commit bbcc976

Please sign in to comment.