Skip to content

Commit 340c583

Browse files
fix callback dark mode background (#307)
* fix callback darkmode background * Update styles.css * Create hip-bikes-hug.md
1 parent 83d777d commit 340c583

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.changeset/hip-bikes-hug.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"docusaurus-theme-redoc": patch
3+
---
4+
5+
fix callback dark mode background

packages/docusaurus-theme-redoc/src/theme/Redoc/styles.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,21 @@ html[data-theme='dark']
126126
background-color: var(--ifm-background-color);
127127
}
128128

129+
/* Fixes https://github.com/rohit-gohri/redocusaurus/issues/306 */
130+
html[data-theme='dark']
131+
.redocusaurus
132+
div[id^='tag']
133+
button:has(span):has(.operation-type) {
134+
background-color: var(--ifm-color-gray-800);
135+
}
136+
137+
html[data-theme='dark']
138+
.redocusaurus
139+
div[id^='tag']
140+
button + div {
141+
background-color: var(--ifm-color-emphasis-0);
142+
}
143+
129144
/* Padding above Response Samples heading */
130145
.redocusaurus .react-tabs__tab-panel--selected {
131146
margin-bottom: 10px;

0 commit comments

Comments
 (0)