Skip to content

Commit

Permalink
fix callback dark mode background (#307)
Browse files Browse the repository at this point in the history
* fix callback darkmode background

* Update styles.css

* Create hip-bikes-hug.md
  • Loading branch information
tomas-zijdemans-vipps authored Sep 20, 2023
1 parent 83d777d commit 340c583
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/hip-bikes-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"docusaurus-theme-redoc": patch
---

fix callback dark mode background
15 changes: 15 additions & 0 deletions packages/docusaurus-theme-redoc/src/theme/Redoc/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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: var(--ifm-color-gray-800);
}

html[data-theme='dark']
.redocusaurus
div[id^='tag']
button + div {
background-color: var(--ifm-color-emphasis-0);
}

/* Padding above Response Samples heading */
.redocusaurus .react-tabs__tab-panel--selected {
margin-bottom: 10px;
Expand Down

1 comment on commit 340c583

@vercel
Copy link

@vercel vercel bot commented on 340c583 Sep 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.