Skip to content

Commit 4fc1b4c

Browse files
authored
Fix search not showing when logo (#266)
1 parent 0d36c80 commit 4fc1b4c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changeset/gold-yaks-search.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'docusaurus-theme-redoc': patch
3+
---
4+
5+
Fix search being hidden when logo present

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ html[data-theme='dark'] .redocusaurus h2 > a:nth-child(1)::before {
4141
* Hide Logo as already in navbar
4242
* @see https://github.com/rohit-gohri/redocusaurus/issues/123
4343
*/
44-
.redocusaurus-has-logo .menu-content div:first-child {
44+
.redocusaurus-has-logo .menu-content > div:first-child {
4545
display: none;
4646
}
4747

@@ -199,4 +199,3 @@ html:not([data-theme='dark']) .redocusaurus div[id^='react-tabs'] code {
199199
[data-theme='dark'] .redocusaurus .api-content div h5 + svg polygon {
200200
filter: invert(1);
201201
}
202-

0 commit comments

Comments
 (0)