-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix logo/darkLogo and colorMode synching #426
Conversation
Size Change: +11.8 kB (0%) Total Size: 6.2 MB
ℹ️ View Unchanged
|
Visit the preview URL for this PR (updated for commit 26e1cb1): https://docusaurus-openapi-36b86--pr426-e9kz1oxj.web.app (expires Thu, 16 Mar 2023 13:54:13 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sserrata I pulled down your branch and ran yarn build
, then copied out the lib
and lib-next
folders into my own node_modules of my project. It took me a while to figure out I needed to also clear out node_modules/.cache
, but after doing that, the correct logo loads up. Change looks good (though you might want to swap out the logo), thanks!
Description
Refactor how logo and darkLogo are handled to ensure sync with
colorMode
.Expected behavior/usage:
x-logo
andx-dark-logo
are definedx-logo
will display in light mode andx-dark-logo
will display in dark modex-logo
orx-dark-logo
are defined, the one that is defined will be displayed for both light and dark modesx-logo
orx-dark-logo
are defined, nothing will be renderedMotivation and Context
Addresses #421
How Has This Been Tested?
See deploy preview Petstore API for test
Types of changes