Skip to content

Ensure that draw_axis() works with element_text() subclasses #3381

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 24, 2019

Conversation

paleolimbot
Copy link
Member

The latest update of the draw_axis() code (#3375) broke the ability of element_text() subclasses to be rendered as axis labels. This PR fixes this, such that any S3 element inheriting from element_text() is rendered correctly. This is important for gridtext integration, which uses element_text() subclasses extensively (#3373). An excellent reprex for this is available here: https://github.com/clauswilke/gridtext/blob/master/examples/ggplot2-integration.R

@paleolimbot paleolimbot merged commit e2bdf85 into tidyverse:master Jun 24, 2019
@paleolimbot paleolimbot deleted the merge-element-subclasses branch June 24, 2019 14:37
@lock
Copy link

lock bot commented Dec 21, 2019

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Dec 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants