Skip to content

Commit b03ed14

Browse files
Tyme-BleyaertTyme Bleyaertvnbaaij
authored
Fix for paginator not applying custom classes (#4207)
Co-authored-by: Tyme Bleyaert <[email protected]> Co-authored-by: Vincent Baaij <[email protected]>
1 parent 696f10d commit b03ed14

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Core/Components/Pagination/FluentPaginator.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@namespace Microsoft.FluentUI.AspNetCore.Components
22
@inherits FluentComponentBase
3-
<div class="paginator" style="@Style">
3+
<div class="@ClassValue" style="@Style">
44
@if (State.TotalItemCount.HasValue)
55
{
66
<div class="summary">

src/Core/Components/Pagination/FluentPaginator.razor.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
using Microsoft.AspNetCore.Components;
66
using Microsoft.FluentUI.AspNetCore.Components.Infrastructure;
7+
using Microsoft.FluentUI.AspNetCore.Components.Utilities;
78

89
namespace Microsoft.FluentUI.AspNetCore.Components;
910

@@ -47,6 +48,10 @@ public partial class FluentPaginator : FluentComponentBase, IDisposable
4748
[Parameter]
4849
public RenderFragment? PaginationTextTemplate { get; set; }
4950

51+
protected string? ClassValue => new CssBuilder(Class)
52+
.AddClass("paginator")
53+
.Build();
54+
5055
/// <summary>
5156
/// Constructs an instance of <see cref="FluentPaginator" />.
5257
/// </summary>

0 commit comments

Comments
 (0)