-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open
Description
Context
No response
Bug description
On initial load the following meta tags are automatically added to <head>
<meta name="theme-color" content="some_value">
<meta name="color-scheme" content="some_other_value">When navigation.instant is set in mkdocs.yml, unexpectedly these tags are removed when navigating the page and clicking on internal links. The removal of the tags result in the scrollbar colours switching back to browser default (e.g. light) instead of the expected (e.g. dark).
After some triaging it seems that they are removed in the inject()-function in
| function inject(next: Document): Observable<Document> { |
Related links
Reproduction
Steps to reproduce
- Load website
- Click a navigation link
- Toggle palette mode
- Observe that scrollbar no longer toggles based on palette
- Observe that meta tags are missing
Browser
No response
Before submitting
- I have read and followed the bug reporting guidelines.
- I have attached links to the documentation, and possibly related issues and discussions.
- I assure that I have removed all customizations before submitting this bug report.
- I have att 5A63 ached a .zip file with a minimal reproduction.
Metadata
Metadata
Assignees
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open