From 8bbe706918beccad0d74a3e6a41ebfdc84a7e220 Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Tue, 25 Jul 2017 21:55:32 -0700 Subject: [PATCH] Disable Try-It-Out button in OAS3 CC: #3436 --- src/core/plugins/oas3/wrap-components/index.js | 4 +++- src/core/plugins/oas3/wrap-components/try-it-out-button.jsx | 6 ++++++ src/style/_layout.scss | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 src/core/plugins/oas3/wrap-components/try-it-out-button.jsx diff --git a/src/core/plugins/oas3/wrap-components/index.js b/src/core/plugins/oas3/wrap-components/index.js index 409b2dc9..eb2bc7a1 100644 --- a/src/core/plugins/oas3/wrap-components/index.js +++ b/src/core/plugins/oas3/wrap-components/index.js @@ -3,11 +3,13 @@ import parameters from "./parameters" import VersionStamp from "./version-stamp" import OnlineValidatorBadge from "./online-validator-badge" import Model from "./model" +import TryItOutButton from "./try-it-out-button" export default { Markdown, parameters, VersionStamp, model: Model, - onlineValidatorBadge: OnlineValidatorBadge + onlineValidatorBadge: OnlineValidatorBadge, + TryItOutButton } diff --git a/src/core/plugins/oas3/wrap-components/try-it-out-button.jsx b/src/core/plugins/oas3/wrap-components/try-it-out-button.jsx new file mode 100644 index 00000000..0ae20dc7 --- /dev/null +++ b/src/core/plugins/oas3/wrap-components/try-it-out-button.jsx @@ -0,0 +1,6 @@ +import React from "react" +import { OAS3ComponentWrapFactory } from "../helpers" + +export default OAS3ComponentWrapFactory(() => { + return null +}) diff --git a/src/style/_layout.scss b/src/style/_layout.scss index 4e6322b6..a25647b0 100644 --- a/src/style/_layout.scss +++ b/src/style/_layout.scss @@ -207,6 +207,8 @@ body padding: 8px 20px; + min-height: 50px; + background: rgba(#fff,.8); box-shadow: 0 1px 2px rgba(#000,.1);