From a88606ccb1b4ed9a391a8e1ee52c08c5f0f478db Mon Sep 17 00:00:00 2001 From: Nicolas Perriault Date: Fri, 25 Mar 2016 17:01:23 +0100 Subject: [PATCH 01/19] WiP: Moving to bootstrap. --- playground/styles.css | 47 ---------------------- src/components/ErrorList.js | 14 +++++-- src/components/Form.js | 5 ++- src/components/fields/ArrayField.js | 36 ++++++++++------- src/components/fields/SchemaField.js | 50 +++++++++++++----------- src/components/widgets/CheckboxWidget.js | 18 ++++++--- src/components/widgets/PasswordWidget.js | 1 + src/components/widgets/RadioWidget.js | 20 +++++----- src/components/widgets/SelectWidget.js | 1 + src/components/widgets/TextWidget.js | 1 + src/components/widgets/TextareaWidget.js | 1 + src/components/widgets/UpDownWidget.js | 1 + test/ArrayField_test.js | 2 +- test/BooleanField_test.js | 2 +- test/NumberField_test.js | 4 +- test/ObjectField_test.js | 2 +- test/StringField_test.js | 4 +- 17 files changed, 97 insertions(+), 112 deletions(-) diff --git a/playground/styles.css b/playground/styles.css index f392df22cc..e69de29bb2 100644 --- a/playground/styles.css +++ b/playground/styles.css @@ -1,47 +0,0 @@ -.rjsf label { - width: 200px; -} - -.rjsf input[type=text], -.rjsf input[type=number], -.rjsf input[type=password], -.rjsf input[type=range], -.rjsf textarea, -.rjsf select { - font-weight: normal; - width: 320px; -} - -.rjsf textarea { - height: 120px; -} - -.rjsf input[type=radio] { - margin-right: .4em; -} - -.invalid { - color: red; -} - -.valid { - color: green; -} - -.rjsf .geo input { - width: 160px; - margin-left: 4px; -} - -.rjsf .field-error input[type=text], -.rjsf .field-error select { - background-color: pink; -} - -.rjsf .field-error .error-detail { - color: red; -} - -.rjsf .errors { - color: red; -} diff --git a/src/components/ErrorList.js b/src/components/ErrorList.js index 96b36f6efb..ff15b1f65d 100644 --- a/src/components/ErrorList.js +++ b/src/components/ErrorList.js @@ -3,11 +3,17 @@ import React from "react"; export default function ErrorList({errors}) { return ( -
-

Errors

-