Auto styles are incorrect when printing

Open
#134 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
react, typescript
Domain
frontend

Research direction

Start with the official CodeSandbox example linked in the issue and reproduce the incorrect code colors while printing in Chrome on macOS Dark theme. Inspect the component's auto-style and print behavior, using the react-to-print report for context. Done means printed code colors remain correct when styles use auto.

Written by the indexing model from the issue text.

Description

When printing, the colors of the code are incorrect when styles are using auto.

My system:
MacOS Ventura 13.1 set to Dark theme
Chrome 108.0.5359.124 (Official Build) (arm64)

To reproduce:

  1. Go to the official CodeSandbox example: https://mcebp.csb.app/
  2. Print the page

Screenshot 2023-01-02 at 5 09 16 PM

I am the maintainer of react-to-print, and this issue was discovered by one of our users: https://github.com/gregnb/react-to-print/issues/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.

Dominant language
TypeScript
Stars
575
Forks
23
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from uiwjs/react-textarea-code-editor

All issues in uiwjs/react-textarea-code-editor

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.