Skip to content

Conversation

@exoego
Copy link

@exoego exoego commented Jan 21, 2026

Closes #1491

  • Use parseColor() to extract RGB value and opacity correctly, like renderBackground does so
  • Apply strokeOpacity() for each border side individually
  • Add test like renderBackground.test.ts

I have verified the change works fine with my work project.

@changeset-bot
Copy link

changeset-bot bot commented Jan 21, 2026

🦋 Changeset detected

Latest commit: 97d844b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@react-pdf/render Minor
@react-pdf/renderer Patch
next-14 Patch
next-15 Patch
@react-pdf/vite-example Patch
@react-pdf/e2e-node-cjs Patch
@react-pdf/e2e-node-esm Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@exoego exoego changed the title Fixes border colors with alpha values rendered fix(renderer) border colors with alpha values rendered Jan 21, 2026
@exoego exoego changed the title fix(renderer) border colors with alpha values rendered fix(render): border colors with alpha values rendered Jan 21, 2026
@exoego exoego changed the title fix(render): border colors with alpha values rendered fix(render): border colors handle alpha values wrongly Jan 23, 2026
@exoego exoego changed the title fix(render): border colors handle alpha values wrongly fix(render): border colors handle alpha values correctly Jan 23, 2026
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

Successfully merging this pull request may close these issues.

RGBA color doesn't work correct with border

1 participant