Skip to content

Commit

Permalink
fix: Adding space between 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 e15f0e3 commit 0558979
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,10 @@
"publish": "lerna publish"
},
"dependencies": {
"@types/invariant": "^2.2.35",
"invariant": "^2.2.4",
"lodash": "^4.17.21",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sass": "^1.70.0",
"uniforms": "4.0.0-alpha.5"
},
"devDependencies": {
Expand All @@ -59,6 +57,7 @@
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
"@types/invariant": "^2.2.35",
"@types/jest": "^29.4.0",
"@types/lodash": "^4.14.168",
"@types/node": "^20.0.0",
Expand All @@ -72,6 +71,7 @@
"jest": "^29.4.2",
"jest-environment-jsdom": "^29.4.2",
"rimraf": "^5.0.0",
"sass": "^1.70.0",
"simpl-schema": "^3.4.1",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
Expand Down
12 changes: 12 additions & 0 deletions src/AutoForm.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
This is required since there's a div between the form
element and its children that breaks the following styles
- display: grid
- gap: var(--pf-c-form--GridGap)
from @patternfly and making the fields very close to
each other
*/
form[data-testid='autoform'] > div {
display: inherit;
gap: inherit;
}
1 change: 1 addition & 0 deletions src/AutoForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { AutoForm } from "uniforms";
import ValidatedQuickForm from "./ValidatedQuickForm";
import './AutoForm.scss';

function Auto(parent: any): any {
class _ extends AutoForm.Auto(parent) {
Expand Down

0 comments on commit 0558979

Please sign in to comment.