Skip to content

Iplementing rjsf form, rewriting to functional components #3043

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Nov 2, 2023
Merged
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