quarto-dev / quarto-dev/quarto-cli

Question about tabsets with groups set not appearing across pages if some tabs don't have content

Open
#10,371 1 comment 0 reactions 1 assignee View on GitHub

@cscheid is already working on this.

Since Jul 24, 2024.

needs-design needs-discussion tabsets
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Discussed in https://github.com/quarto-dev/quarto-cli/discussions/10370

Originally posted by nickvigilante July 24, 2024

Description

I'm not sure if this is a bug, so I'm gonna start it off as a discussion.

We make use of tabsets across our docs, and some tabsets pertain to different programming languages. Not all tabsets share the same exact tabs (e.g., some tabsets can have Python and Golang, others can have Python and C++, others can have Java and R, etc.).

When we use the same group across tabsets where a previously selected tab is present in one tabset but missing in another tabset, we see a missing tab:

image

image

Note how when Golang is selected, the second code block displays nothing. I have this reproduced here:

https://github.com/nickvigilante/tabset-group-issue

Is this a bug, or is this expected? We can work around the problem, but I want to know sooner rather than later, so I can start the work. I guess it would be nice to see if we switch tabs that either the previously selected tab in the tabset stays (e.g., Python), or if navigating across pages, the first tab available displays.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.