Skip to content

Commit

Permalink
Merge pull request #3043 from alexcottner/functional-components
Browse files Browse the repository at this point in the history
Iplementing rjsf form, rewriting to functional components
  • Loading branch information
alexcottner authored Nov 2, 2023
2 parents b244e4b + ae3def5 commit 52da91b
Show file tree
Hide file tree
Showing 68 changed files with 4,076 additions and 3,940 deletions.
30 changes: 25 additions & 5 deletions css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -531,12 +531,32 @@ i.fa:before {
margin-right: 10px;
}

.rjsf legend {
border-bottom: 1px solid #e5e5e5;
.rjsf .form-label {
font-weight: 700;
}

.rjsf .control-label {
font-weight: 700;
.rjsf h5 {
font-size: 18pt;
margin: 0 0 0 1pt;
}

.rjsf hr {
margin: 1px 0 .5em 0;
background-color: #ccc !important;
}

/* we have some very tall rows, aligning center makes the buttons hard to locate */
.rjsf .row .align-items-center {
align-items: flex-start !important;
border-bottom: 1px solid #eee;
}

.rjsf .align-items-center button.btn {
font-size: 14pt;
}

.rjsf .input-group-append button.dropdown-toggle {
font-size: 12pt;
}

.modal {
Expand Down Expand Up @@ -602,4 +622,4 @@ i.fa:before {
position: absolute;
top: 152px;
right: 30px;
}
}
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module.exports = {
moduleNameMapper: {
"\\.(css|less)$": "<rootDir>/test/__mocks__/styleMock.js",
"\\.svg": "<rootDir>/test/__mocks__/svgrMock.js",
"^nanoid$": "@rjsf/core/node_modules/nanoid/index.browser.cjs", // to avoid jest/es6 issue with @rjsf dependency
},
setupFilesAfterEnv: ["./test/setup-tests.js"],
testEnvironment: "jest-environment-jsdom",
Expand Down
Loading

0 comments on commit 52da91b

Please sign in to comment.