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

{.active} attribute in {.tabset} doesn't work with flexdashboard #310

Closed
3 tasks done
Waldi73 opened this issue Feb 18, 2021 · 2 comments · Fixed by #311
Closed
3 tasks done

{.active} attribute in {.tabset} doesn't work with flexdashboard #310

Waldi73 opened this issue Feb 18, 2021 · 2 comments · Fixed by #311

Comments

@Waldi73
Copy link

Waldi73 commented Feb 18, 2021

Steps to reproduce the problem

This is a follow-up of this issue, and no answer was found with Stackoverflow.

Run following Markdown :

---
title: "Active Tabset"
output: flexdashboard::flex_dashboard
---

Column {.tabset}
-------------------------------------
   
### Tab 1

Some text
 
### Tab 2 {.active}

Some other text

Describe the problem in detail

the {.active} attribute doesn't make second tab active with flexdashboard

Describe the behavior you expected

same behaviour as with html_document output : change active tab


By filing an issue to this repo, I promise that

  • I have fully read the issue guide at https://yihui.org/issue/.
  • I have provided the necessary information about my issue.
    • If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
    • If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('rmarkdown'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('rstudio/rmarkdown').
    • If I have posted the same issue elsewhere, I have also mentioned it in this issue.
  • I have learned the Github Markdown syntax, and formatted my issue correctly.

I understand that my issue may be closed if I don't fulfill my promises.

@cderv cderv transferred this issue from rstudio/rmarkdown Feb 18, 2021
@cderv
Copy link
Collaborator

cderv commented Feb 18, 2021

@Waldi73 I moved your issue in the flexdahsboard repository as your question concerns this tool.

Currently, I don't think this is supported by flexdahsboard. The tabset feature is document in https://rmarkdown.rstudio.com/flexdashboard/layouts.html#tabset_column and works differently than the one for html_document()

@Waldi73
Copy link
Author

Waldi73 commented Feb 18, 2021

@cderv , thanks, perhaps more a possible improvement making expected behaviour consistent for users than an issue.

cpsievert added a commit that referenced this issue Feb 22, 2021
* Close #310: Add support for {.active} class within {.tabset}s

* update news
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 a pull request may close this issue.

2 participants