Skip to content

Margins can be units #5932

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 1 commit into from
Jun 18, 2024
Merged

Conversation

teunbrand
Copy link
Collaborator

This PR is an amendement to #5622.

Briefly, in #5622, we required that certain margin elements in the theme are of the class 'margin'.
However, reverse dependency checks shows that many people use e.g. theme(plot.margin = unit(c(4, 4, 4, 4), "mm").
This isn't necessarily wrong, so this PR allows margin elements to accept units too.

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 ba0b18a into tidyverse:main Jun 18, 2024
11 checks passed
@teunbrand teunbrand deleted the margins_can_be_units branch June 18, 2024 09:22
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.

2 participants