Skip to content

Commit 406fd2e

Browse files
authored
fix: authorization dropdown background contrast issue in dark mode (#418)
* docs(changeset): fix authorization dropdown contrast issue in dark mode * fix: Authorisation Dropdown background color fix * fix: Authorisation Dropdown background color fix
1 parent fe84a58 commit 406fd2e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/quiet-mayflies-brush.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 authorization dropdown contrast issue in dark mode

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,3 +216,7 @@ html:not([data-theme='dark'])
216216
[data-theme='dark'] .redocusaurus .api-content div h5 + svg polygon {
217217
filter: invert(1);
218218
}
219+
220+
[data-theme='dark'] .redocusaurus .api-content div:has(> span > span > i + code) {
221+
background: var(--ifm-color-emphasis-0);
222+
}

0 commit comments

Comments
 (0)