Skip to content

fix: Custom FluentTab Header is not displayed in FluentTabs #3812

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

Closed
jfadiga opened this issue May 23, 2025 · 2 comments
Closed

fix: Custom FluentTab Header is not displayed in FluentTabs #3812

jfadiga opened this issue May 23, 2025 · 2 comments
Labels
needs: repro code or repository The provided description or code is insufficient to repro the issue Not reproducible Issue can not be reproduced

Comments

@jfadiga
Copy link

jfadiga commented May 23, 2025

🐛 Bug Report

When adding new FluentTabs component, if the Fluent Tab Content is shorter than Fluent Tab Header, Fluent Tab Header is not displayed, It just shows "+ {number of tab headers}".

💻 Repro or Code Sample

<FluentTabs ActiveTabId="tab-1">
    <FluentTab Id="tab-1">
        <Header>
            First Tab Header
        </Header>
        <Content>
            test testtesttesttest testtest test test
        </Content>
    </FluentTab>
</FluentTabs>

<FluentTabs ActiveTabId="tab-2">
    <FluentTab Id="tab-2">
        <Header>
            First Tab Header
        </Header>
        <Content>
            test
        </Content>
    </FluentTab>
</FluentTabs>

Image

🤔 Expected Behavior

Fluent Tab Headers are displayed no matter the Fluent Tab Content length.

😯 Current Behavior

Fluent Tab Headers are not displayed when Fluent Tab Content is shorter than Fluent Tab Header.

💁 Possible Solution

FluentTabs Width could be set to 100 % of parent width so that Fluent Tab Header can fit inside FluentTabs.

🔦 Context

It was difficult to understand why one page displayed Fluent Tab Headers correctly and the other did not. It affects the perception when users uses the application as if it is not finished.

🌍 Your Environment

  • OS & Device: Windows 11
  • Browser: latest Microsoft Edge
  • .NET and Fluent UI Blazor library Version 8.0.2 and 4.11.9
@microsoft-github-policy-service microsoft-github-policy-service bot added the triage New issue. Needs to be looked at label May 23, 2025
@dvoituron
Copy link
Collaborator

We need more context, because your example shows a correct UI.

Image

https://try.fluentui-blazor.net/snippet/QOwTupcxyIFkEyNs

@vnbaaij vnbaaij added needs: repro code or repository The provided description or code is insufficient to repro the issue Not reproducible Issue can not be reproduced and removed triage New issue. Needs to be looked at labels May 27, 2025
@vnbaaij
Copy link
Collaborator

vnbaaij commented May 27, 2025

As @dvoituron mentioned already, we cant reproduce this. We are closing this for now. If you supply reproduction code, we can re-open and investigate further.

@vnbaaij vnbaaij closed this as completed May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: repro code or repository The provided description or code is insufficient to repro the issue Not reproducible Issue can not be reproduced
Projects
None yet
Development

No branches or pull requests

3 participants