From e4f3ebb26c0f0b8c6226e595f7f9d40dfac8a081 Mon Sep 17 00:00:00 2001 From: Gideon Shils Date: Thu, 26 Oct 2023 13:21:31 -0400 Subject: [PATCH] Ensure we load stoplight css first so that base styles get overridden --- website/docusaurus.config.js | 5 +++++ website/src/components/stoplight/index.js | 27 +++++++++-------------- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index ce81d614c65..a24cab32ef2 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -278,6 +278,11 @@ var siteSettings = { }, {rel: 'icon', href: '/img/favicon.png', type: 'image/png'}, {rel: 'icon', href: '/img/favicon.svg', type: 'image/svg+xml'}, + { + href: "https://unpkg.com/@stoplight/elements/styles.min.css", + type: "text/css", + crossorigin: "anonymous" + }, ], }; diff --git a/website/src/components/stoplight/index.js b/website/src/components/stoplight/index.js index bff43dd27c8..c7d2731903c 100644 --- a/website/src/components/stoplight/index.js +++ b/website/src/components/stoplight/index.js @@ -6,22 +6,15 @@ export default function Stoplight({ version }) { return null; } return ( - <> - - - + ); }