Skip to content

Commit

Permalink
Replace deprecated Palette by PaletteLight (#2112)
Browse files Browse the repository at this point in the history
  • Loading branch information
hocinehacherouf authored May 24, 2023
1 parent 90f3afd commit 3a705c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/AzureIoTHub.Portal.Client/Constants/Theme.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public static class Theme
{
public static readonly MudTheme CurrentTheme = new()
{
Palette = new Palette
Palette = new PaletteLight
{
Background = "#efefef"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
namespace AzureIoTHub.Portal.Tests.Unit.Client.Constants
{
using AzureIoTHub.Portal.Client.Constants;
using FluentAssertions;
using FluentAssertions;
using MudBlazor;
using NUnit.Framework;

[TestFixture]
Expand All @@ -19,7 +20,8 @@ public void PaletteBackgroundColorOfCurrentThemeShouldBeCorrect()
// Act
var currentTheme = Theme.CurrentTheme;

// Assert
// Assert
_ = currentTheme.Palette.GetType().Should().Be(typeof(PaletteLight));
_ = currentTheme.Palette.Background.ToString().Should().Be(expectedPaletteBackground);
}
}
Expand Down

0 comments on commit 3a705c8

Please sign in to comment.