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

fix rendering glitch with drawRoundRectWithInnerBorder #1585

Merged
merged 2 commits into from
May 8, 2024

Conversation

SlicedSilver
Copy link
Contributor

Type of PR: bugfix

PR checklist:

Overview of change:

The code within the old drawRoundRectWithInnerBorder is technically correct but the browsers are rendering the labels drawn with this method with a slight artefact.

Since the labels are always a solid color (see generateContrastColors in color.ts), we can use a simplified method of drawing these labels which doesn't have this rendering issue.

@SlicedSilver SlicedSilver added this to the 4.1.x milestone May 8, 2024
@SlicedSilver SlicedSilver self-assigned this May 8, 2024
@SlicedSilver SlicedSilver marked this pull request as ready for review May 8, 2024 15:00
@edew edew self-requested a review May 8, 2024 15:03
@SlicedSilver SlicedSilver merged commit 85b8807 into master May 8, 2024
19 of 22 checks passed
@SlicedSilver SlicedSilver deleted the fix-price-label-rendering-artefact branch May 8, 2024 15:47
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.

Price label rendering artefacts
2 participants