Skip to content
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

Consider enabling panelsets/tabsets with R content #25

Open
apreshill opened this issue Nov 20, 2020 · 2 comments
Open

Consider enabling panelsets/tabsets with R content #25

apreshill opened this issue Nov 20, 2020 · 2 comments

Comments

@apreshill
Copy link
Contributor

apreshill commented Nov 20, 2020

Similar to tabsets in R Markdown/bootstrap based outputs, and the xaringanExtra panelset:

Screen Shot 2020-11-20 at 9 05 20 AM

https://pkg.garrickadenbuie.com/xaringanExtra/#/panelset

This is a neat shortcode based approach, up to you whether folks use this as a module or you build it in 👍

https://github.com/rvanhorn/hugo-dynamic-tabs

used here:
https://www.nistara.net/videos/

Screen Shot 2020-11-20 at 9 07 29 AM

Comes up frequently on the wishlist for blogdown users, for example: rstudio/blogdown#69

@yihui
Copy link
Owner

yihui commented Nov 21, 2020

Thanks for the suggestion and tips! I did some research on this and currently my favorite CSS solution is https://kyusuf.com/post/completely-css-tabs/. I don't quite like the shortcode approach, since the syntax looks too "raw," and I'd prefer R Markdown's syntax, i.e., add the tabset class to a header, and subsequent sub headers become tabs. I could make this feature work for both R Markdown and plain Markdown posts.

@apreshill
Copy link
Contributor Author

That looks very exciting! I have been using panelset within distill and we decided to not build in support- but this is such a great feature for blogs. I also noticed this link for "accessible tabs": https://a11y.nicolas-hoffmann.net/tabs/#robust_accessible

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

No branches or pull requests

2 participants