Skip to content

Commit

Permalink
🐛 fix(Pagination): incorrect navigation style (#1968)
Browse files Browse the repository at this point in the history
  • Loading branch information
capdiem authored Jun 17, 2024
1 parent a450025 commit 8ad0262
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Masa.Blazor/Components/Pagination/MPagination.razor
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
}

<MElement Tag="@tag"
Class="@_paginationModifierBuilder.Add(disabled).Build()"
Class="@_navigationModifierBuilder.Add(disabled).Build()"
@onclick="@click"
@attributes="@attrs">
<MIcon Icon="@icon"/>
Expand Down
2 changes: 1 addition & 1 deletion src/Masa.Blazor/Components/Pagination/MPagination.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public bool IsDark

private static Block _block = new("m-pagination");
private static ModifierBuilder _modifierBuilder = _block.CreateModifierBuilder();
private static ModifierBuilder _paginationModifierBuilder = _block.Element("pagination").CreateModifierBuilder();
private static ModifierBuilder _navigationModifierBuilder = _block.Element("navigation").CreateModifierBuilder();
private static ModifierBuilder _itemModifierBuilder = _block.Element("item").CreateModifierBuilder();

public bool PrevDisabled => Value <= 1;
Expand Down

0 comments on commit 8ad0262

Please sign in to comment.