From 6b052a98e7f6b910fc47bf8024de556917406411 Mon Sep 17 00:00:00 2001 From: Tomas Zijdemans Date: Tue, 19 Sep 2023 08:35:26 +0200 Subject: [PATCH 1/3] fix callback darkmode background --- .../src/theme/Redoc/styles.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packages/docusaurus-theme-redoc/src/theme/Redoc/styles.css b/packages/docusaurus-theme-redoc/src/theme/Redoc/styles.css index 5df32666..30dded58 100644 --- a/packages/docusaurus-theme-redoc/src/theme/Redoc/styles.css +++ b/packages/docusaurus-theme-redoc/src/theme/Redoc/styles.css @@ -126,6 +126,21 @@ html[data-theme='dark'] background-color: var(--ifm-background-color); } +/* Fixes https://github.com/rohit-gohri/redocusaurus/issues/306 */ +html[data-theme='dark'] + .redocusaurus + div[id^='tag'] + button:has(span):has(.operation-type) { + background-color: rgb(27, 32, 40); +} + +html[data-theme='dark'] + .redocusaurus + div[id^='tag'] + button + div { + background-color: rgb(27, 32, 40); +} + /* Padding above Response Samples heading */ .redocusaurus .react-tabs__tab-panel--selected { margin-bottom: 10px; From aeaf3dd8aba4f93e7d4fc73b705d0cf85e8e312f Mon Sep 17 00:00:00 2001 From: Tomas Zijdemans <113360400+tomas-zijdemans-vipps@users.noreply.github.com> Date: Wed, 20 Sep 2023 08:54:53 +0200 Subject: [PATCH 2/3] Update styles.css --- packages/docusaurus-theme-redoc/src/theme/Redoc/styles.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/docusaurus-theme-redoc/src/theme/Redoc/styles.css b/packages/docusaurus-theme-redoc/src/theme/Redoc/styles.css index 30dded58..21de71f5 100644 --- a/packages/docusaurus-theme-redoc/src/theme/Redoc/styles.css +++ b/packages/docusaurus-theme-redoc/src/theme/Redoc/styles.css @@ -131,14 +131,14 @@ html[data-theme='dark'] .redocusaurus div[id^='tag'] button:has(span):has(.operation-type) { - background-color: rgb(27, 32, 40); + background-color: var(--ifm-color-gray-800); } html[data-theme='dark'] .redocusaurus div[id^='tag'] button + div { - background-color: rgb(27, 32, 40); + background-color: var(--ifm-color-emphasis-0); } /* Padding above Response Samples heading */ From 80f6a99386abc525028abf34eb64b8893c7bc551 Mon Sep 17 00:00:00 2001 From: Rohit Gohri Date: Thu, 21 Sep 2023 05:31:16 +0800 Subject: [PATCH 3/3] Create hip-bikes-hug.md --- .changeset/hip-bikes-hug.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/hip-bikes-hug.md diff --git a/.changeset/hip-bikes-hug.md b/.changeset/hip-bikes-hug.md new file mode 100644 index 00000000..832e82ea --- /dev/null +++ b/.changeset/hip-bikes-hug.md @@ -0,0 +1,5 @@ +--- +"docusaurus-theme-redoc": patch +--- + +fix callback dark mode background