Skip to content

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