Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All text have black color by default #3224

Open
MallaSampat18 opened this issue Dec 20, 2024 · 0 comments
Open

All text have black color by default #3224

MallaSampat18 opened this issue Dec 20, 2024 · 0 comments

Comments

@MallaSampat18
Copy link

I am trying to take a screenshot of a canvas using html2canvas. Everything works fine apart from all the text in the canvas are having black color by default. Even after mentioning specific color, it does not gets applied to the screenshot.
This is the actual canvas. The text are having their defined colors.
Screenshot 2024-12-20 123310
This is the canvas screenshot using html2canvas. All texts are having black color.
LKST646
In the project writing css in js using styled components is followed. However, html2canvas was not supporting this so i had to use inline styling. Everything works fine except for the text color.

Specifications:

  • react version: 17.0.0
  • html2canvas version tested with: 1.4.1
  • Browser & version: Google Chrome Version 131.0.6778.140 (Official Build) (64-bit)
  • Operating system: Windows 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant