You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit adds tests for how Quarto handles edge cases when logos are missing for
one theme mode but both light and dark modes are enabled:
1. dark-mode-no-dark-logo.qmd:
Tests what happens when dark mode is enabled but only light logo exists
2. dark-mode-no-light-logo.qmd:
Tests what happens when dark mode is enabled but only dark logo exists
3. document-light-brand-light-only.qmd:
Tests document-level light-only logo + brand with light-only logo
4. document-dark-brand-dark-only.qmd:
Tests document-level dark-only logo + brand with dark-only logo
Key learnings:
- Quarto implements cross-mode fallbacks where missing logos for one mode
automatically use logos from the other mode
- Implementation in brand.ts shows the fallback logic applies in both directions:
light → dark and dark → light
- Document-level logo settings take precedence over brand-level settings
- The fallback system ensures logos always appear regardless of which theme
mode is active, providing a consistent user experience
0 commit comments