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
Describe the bug printColorModeName doesn't seem to work, at least with nextjs.
To Reproduce
I have created an example repo, which is a simple copy of the next project in the examples folder. I did the following extra to make it work:
install typescript and @types/react as it's complained after yarn
add printColorModeName: 'light' to the theme.ts file.
toggle to dark mode, then cmd + p to print the page, you get the dark them in preview.
Expected behavior
the print should use light theme
Screenshots
I have checked the source, it seems the current theme is applied in @media print.
The text was updated successfully, but these errors were encountered:
lachlanjc
changed the title
printColorModeName option does not working properly
color-modes: printColorModeName option not working properly
Nov 29, 2021
Describe the bug
printColorModeName
doesn't seem to work, at least with nextjs.To Reproduce
I have created an example repo, which is a simple copy of the
next
project in the examples folder. I did the following extra to make it work:typescript
and@types/react
as it's complained afteryarn
printColorModeName: 'light'
to thetheme.ts
file.Expected behavior
the print should use light theme
Screenshots
I have checked the source, it seems the current theme is applied in
@media print
.The text was updated successfully, but these errors were encountered: