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
I am the maintainer of react-to-print, and this issue was discovered by one of our users: MatthewHerbst/react-to-print#540. I looked at the styles and didn't see anything obviously wrong, but I am not an expert in that area. If I can be of any assistance solving this, please let me know.
I can't tell the end user who isn't a programmer how to set it. react-textarea-code-editor needs to "Just Work". It is possible to set the print style:
Activity
jaywcjlove commentedon Jan 3, 2023
@MatthewHerbst https://stackoverflow.com/a/59223868/1334703
MatthewHerbst commentedon Jan 3, 2023
Hi @jaywcjlove I know that I can do that as a developer, but that solution isn't sufficient for an end-user of a website
jaywcjlove commentedon Jan 3, 2023
@MatthewHerbst https://codesandbox.io/embed/react-textarea-code-editor-for-example-github-com-uiwjs-react-textarea-code-editor-issues-134-ex2v6j?fontsize=14&hidenavigation=1&theme=dark
This is an example, you need to improve
MatthewHerbst commentedon Jan 3, 2023
While this is at least an improvement since now all the text is legible, this still prints the light version instead of the dark version.
react-textarea-code-editorshould ensure the styles when printing are the same as the styles when not printing.jaywcjlove commentedon Jan 3, 2023
The print style is given by the Chrome browser. It needs to be set manually.
@MatthewHerbst
MatthewHerbst commentedon Jan 3, 2023
I can't tell the end user who isn't a programmer how to set it.
react-textarea-code-editorneeds to "Just Work". It is possible to set the print style:jaywcjlove commentedon Jan 3, 2023
Although the printing theme is set, the browser theme is still
light, which needs to be set manually. @MatthewHerbstMatthewHerbst commentedon Jan 3, 2023
Then please make the changes in
be part of the code, that way it "works" even without being set. And please add instructions about this to the README so your users know what to do.
jaywcjlove commentedon Jan 3, 2023
@MatthewHerbst I tried integrating the system light and dark themes, but it will be missing some features. E.g: