Skip to content

More styling for opt_interactive() + new visual tests for different output formats #1766

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 18 commits into from
Jul 17, 2024

Conversation

olivroy
Copy link
Collaborator

@olivroy olivroy commented Jul 10, 2024

Summary

Wonder if there is a better way to do this other than to mix and match different ihtml features.

Will use this PR to make some updates as I see them fit, and will let you know once it is ready for review. I don't understand some of the code. I wonder if there is a way to do this more smoothly / automatically?

Checklist

@olivroy olivroy changed the title More support for opt_interactive() More styling for opt_interactive() Jul 10, 2024
olivroy added 12 commits July 11, 2024 10:12
Merge commit 'e56c3f411994fd7910f1ff428b0d74fc758ce8fe'

#Conflicts:
#	.github/workflows/pkgdown.yaml
#	NEWS.md
#	tests/testthat/test-opt_functions.R
#	vignettes/case-study-gtcars.Rmd
#	vignettes/gt-datasets.Rmd
#	vignettes/gt.Rmd
Update script
Update actions
Update result with `source("scripts/visual-tests-latex.R")`
@olivroy olivroy marked this pull request as ready for review July 16, 2024 22:21
@olivroy
Copy link
Collaborator Author

olivroy commented Jul 16, 2024

@rich-iannone

Let me know what you think!

Here is my attempt at verifying cross-output.

  1. A vignette specifically for interactvie tables that I will continue enhancing.
  2. A new vignette for 3 output formats in Quarto.
  3. A new asset that will be available from an easy link when uploaded https://gt.rstudio.com/gt-latex.pdf and will be updatable manually (hopefully automatically on a cron job, but haven't done that yet)

There still is a bit of copy-paste needed to add more visual tests in gt-visual.qmd. I will have to think about this more.

@olivroy olivroy changed the title More styling for opt_interactive() More styling for opt_interactive() + new visual tests for cross-output Jul 16, 2024
@rich-iannone
Copy link
Member

I really like everything that's being done here! Visual testing is important for verifying that things are continuing to work properly so this is all much needed.

@olivroy olivroy changed the title More styling for opt_interactive() + new visual tests for cross-output More styling for opt_interactive() + new visual tests for different output formats Jul 17, 2024
@rich-iannone
Copy link
Member

@olivroy I noticed this is no longer a draft PR, but, you also mentioned things left to do (but could very well be in a new PR). Given all that, is this PR ready for review / merging?

@rich-iannone
Copy link
Member

Never mind, just saw 'ready for review' up above. Will get to that now!

Copy link
Member

@rich-iannone rich-iannone left a comment

Choose a reason for hiding this comment

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

LGTM!

@rich-iannone rich-iannone merged commit 83bf118 into rstudio:master Jul 17, 2024
13 checks passed
@olivroy olivroy deleted the borderless branch August 26, 2024 13:41
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.

Can't set font size if using opt_interactive
2 participants