Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2028,7 +2028,7 @@
<member name="P:Microsoft.FluentUI.AspNetCore.Components.FluentDataGrid`1.SaveStateInUrl">
<summary>
Gets or sets a value indicating whether the grid should save its paging state in the URL.
<para>This is an **experimental** feature, which might cause unwanted jumping in the page when you change something in the grid.</para>
<para>This is an experimental feature, which might cause unwanted jumping in the page when you change something in the grid.</para>
</summary>
</member>
<member name="P:Microsoft.FluentUI.AspNetCore.Components.FluentDataGrid`1.SaveStatePrefix">
Expand Down
32 changes: 31 additions & 1 deletion examples/Demo/Shared/Pages/Lab/IssueTester.razor
Original file line number Diff line number Diff line change
@@ -1 +1,31 @@

<div style="width: 175px;">
<FluentTabs ActiveTabId="tab-1">
<FluentTab Id="tab-1" Label="All">
<Header>
<FluentIcon Value="@(new Icons.Regular.Size16.LeafOne())" />
All
</Header>
<Content>
Content 0
</Content>
</FluentTab>
<FluentTab Id="tab-2" Label="January">
<Header>
<FluentIcon Value="@(new Icons.Regular.Size16.LeafTwo())" Color="@Color.Success" />
January
</Header>
<Content>
Content 1
</Content>
</FluentTab>
<FluentTab Id="tab-3" Label="February">
<Header>
<FluentIcon Value="@(new Icons.Regular.Size16.LeafThree())" Color="@Color.Error" />
<span style="color:forestgreen;">February</span>
</Header>
<Content>
Content 2
</Content>
</FluentTab>
</FluentTabs>
</div>
17 changes: 10 additions & 7 deletions src/Core/Components/Tabs/FluentTab.razor
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,18 @@
{
<FluentIcon Value="@Icon" Width="20px" Class="fluent-tab-icon" />
}
@if (LabelEditable)
@if (Header is null)
{
<span contenteditable="true" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" Title="Click to edit this tab name" style="padding: 3px 5px;">
@if (LabelEditable)
{
<span contenteditable="true" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" Title="Click to edit this tab name" style="padding: 3px 5px;">
@Label
</span>
}
else
{
@Label
</span>
}
else
{
@Label
}
}

@Header
Expand Down
Loading