From 5fe29e301de97333540a2e4d83f7973fd85b25db Mon Sep 17 00:00:00 2001 From: Dom Harrington Date: Tue, 7 Aug 2018 14:05:35 -0700 Subject: [PATCH] Make required asterisks red Relies on https://github.com/mozilla-services/react-jsonschema-form/pull/1001 which will hopefully get merged in --- packages/api-explorer/api-explorer.css | 5 +++++ packages/api-explorer/package-lock.json | 30 ++++++++++++++++++++----- 2 files changed, 30 insertions(+), 5 deletions(-) diff --git a/packages/api-explorer/api-explorer.css b/packages/api-explorer/api-explorer.css index ba1e78ac2..ca6598b65 100644 --- a/packages/api-explorer/api-explorer.css +++ b/packages/api-explorer/api-explorer.css @@ -45,6 +45,11 @@ input[type='file'] { flex: 1 1 150px; } +/* Make required asterisks red */ +.form-group .required { + color: #ef6363; +} + /* Style param category labels. */ legend { font-weight: bold; diff --git a/packages/api-explorer/package-lock.json b/packages/api-explorer/package-lock.json index 5c8092205..0efb35ed6 100644 --- a/packages/api-explorer/package-lock.json +++ b/packages/api-explorer/package-lock.json @@ -1,6 +1,6 @@ { "name": "@readme/api-explorer", - "version": "0.5.3", + "version": "0.6.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -2995,7 +2995,7 @@ }, "event-stream": { "version": "3.3.4", - "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-3.3.4.tgz", + "resolved": "http://registry.npmjs.org/event-stream/-/event-stream-3.3.4.tgz", "integrity": "sha1-SrTJoPWlTbkzi0w02Gv86PSzVXE=", "requires": { "duplexer": "0.1.1", @@ -9056,12 +9056,13 @@ } }, "react-jsonschema-form": { - "version": "github:domharrington/react-jsonschema-form#9dec365247869f4d1da0f2f0f300e3be503e61d9", + "version": "github:domharrington/react-jsonschema-form#f056a1ed34d2d0841ae897303e9d29b9e8143687", "requires": { "ajv": "5.5.2", + "babel-runtime": "6.26.0", + "core-js": "2.5.7", "lodash.topath": "4.5.2", - "prop-types": "15.5.10", - "setimmediate": "1.0.5" + "prop-types": "15.5.10" }, "dependencies": { "ajv": { @@ -9074,6 +9075,25 @@ "fast-json-stable-stringify": "2.0.0", "json-schema-traverse": "0.3.1" } + }, + "babel-runtime": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", + "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "requires": { + "core-js": "2.5.7", + "regenerator-runtime": "0.11.1" + } + }, + "core-js": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.7.tgz", + "integrity": "sha512-RszJCAxg/PP6uzXVXL6BsxSXx/B05oJAQ2vkJRjyjrEcNVycaqOmNb5OTxZPE3xa5gwZduqza6L9JOCenh/Ecw==" + }, + "regenerator-runtime": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", + "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==" } } },