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

CSS errors when using styled-components #3185

Open
2 tasks done
shengchen-houzz opened this issue Jul 30, 2024 · 1 comment
Open
2 tasks done

CSS errors when using styled-components #3185

shengchen-houzz opened this issue Jul 30, 2024 · 1 comment

Comments

@shengchen-houzz
Copy link

shengchen-houzz commented Jul 30, 2024

Please make sure you are testing with the latest release of html2canvas.
Old versions are not supported and issues reported for them will be closed.

Please follow the general troubleshooting steps first:

  • You are using the latest version
  • You are testing using the non-minified version of html2canvas and checked any potential issues reported in the console

Bug reports:

I'm working on printing out a table list with checkboxes. To customize the checkbox style, I use styled-components module as followed:

const StyledCheckbox = styled.input`
    &:checked {
        ${css({ bg: '#4DBC15' })}
    }
    ${css({ borderRadius: '50%' })}
`;

The ideal view should be like:
截圖 2024-07-30 中午12 06 31

However, the printed view is like:
截圖 2024-07-30 中午12 07 32

Specifications:

  • html2canvas version tested with: 1.4.1
  • Browser & version: Chrome 126.0.6478.127
  • Operating system: MacOS 14.5
@PartishtaP
Copy link

I would like to work on this issue. Please assign this to me

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

2 participants