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
Theme changes to light when calling window.print() if current theme is set to system and resolvedTheme is set to dark (i.e. OS is set to dark mode). After closing the print dialog the theme returns to dark. Using cmd + p doesn't affect the current theme.
I would assume that window.print() causes a re-render of the page that doesn't execute JS and therefor doesn't apply the dark-mode attribute and therefor doesn't update the colors.
Closing for now :)
Theme changes to
light
when callingwindow.print()
if current theme is set tosystem
andresolvedTheme
is set todark
(i.e. OS is set to dark mode). After closing the print dialog the theme returns todark
. Using cmd + p doesn't affect the current theme.Only seems to happen when using the Pages Router.
Here is a CodeSandbox to try it out:
Not sure if this is a bug or an un-documented feature.
Maybe related to #6.
The text was updated successfully, but these errors were encountered: