Skip to content

Commit

Permalink
Fix search not showing when logo (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit-gohri committed Feb 10, 2023
1 parent 0d36c80 commit 4fc1b4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/gold-yaks-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'docusaurus-theme-redoc': patch
---

Fix search being hidden when logo present
3 changes: 1 addition & 2 deletions packages/docusaurus-theme-redoc/src/theme/Redoc/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ html[data-theme='dark'] .redocusaurus h2 > a:nth-child(1)::before {
* Hide Logo as already in navbar
* @see https://github.com/rohit-gohri/redocusaurus/issues/123
*/
.redocusaurus-has-logo .menu-content div:first-child {
.redocusaurus-has-logo .menu-content > div:first-child {
display: none;
}

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

1 comment on commit 4fc1b4c

@vercel
Copy link

@vercel vercel bot commented on 4fc1b4c Feb 10, 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.