Skip to content

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

Open
@cscheid

Description

@cscheid

Discussed in #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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions