Skip to content

fix(modern): Inactive tabs being hidden on PDF documentation - #11221

Merged
vicancy merged 2 commits into
dotnet:mainfrom
ferafiks:fix/pdf-tabs
Dec 3, 2026
Merged

vicancy merged 2 commits into
dotnet:mainfrom
ferafiks:fix/pdf-tabs

Conversation

@ferafiks

Copy link
Copy Markdown
Contributor

Description

When creating the PDF version of documentation or simply trying to print a page, inactive sections of tabbed content would stay hidden, making it impossible to view other content, since clicking on tabs wouldn't do anything. This PR fixes that on the modern template by forcing display: flex on all sections and injecting tab navigation between them, so that everything still looks correct.

This is a fix only for the modern template. Other templates may or may not still have that problem.

Here's before:

image

And here's after:

image

Related issues

Comment thread templates/modern/src/markdown.ts Resolved
Comment thread templates/modern/src/markdown.ts Resolved
@vicancy
vicancy merged commit 3b74d1f into dotnet:main Dec 3, 2026
18 checks passed
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.

2 participants