Skip to content

Repurpose rect key #6327

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

Merged
merged 9 commits into from
Mar 25, 2025
Merged

Repurpose rect key #6327

merged 9 commits into from
Mar 25, 2025

Conversation

teunbrand
Copy link
Collaborator

This PR aims to fix #5385.

Briefly, the draw_key_rect() function defaults NA-fill to the colour aesthetic.
To course-correct geom_rect() is now using draw_key_polygon() instead, which has been given 0-width linewidth by default.

@teunbrand
Copy link
Collaborator Author

teunbrand commented Feb 10, 2025

I have nu clue why the checks pass locally and most CI checks fail. The only difference should be linewidths at elements that have blank linetypes, so visually it shouldn't matter, but it appears as if the snapshot files are written inconsistently across different R versions?

Copy link
Member

@thomasp85 thomasp85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@teunbrand teunbrand merged commit 183e7ad into tidyverse:main Mar 25, 2025
12 of 13 checks passed
@teunbrand teunbrand deleted the rect_key branch March 25, 2025 16:43
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.

draw_key_rect fails to get color from outline when fill is NA
2 participants