Skip to content
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

Remove unused Color.Surface #8889

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/MudBlazor.UnitTests/Components/ProgressLinearTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public void TestClassesForSize(Size size, string expectedString)

[Test]
[TestCase(Color.Success, "success")]
[TestCase(Color.Surface, "surface")]
[TestCase(Color.Tertiary, "tertiary")]
[TestCase(Color.Error, "error")]
public void TestClassesForColor(Color color, string expectedString)
{
Expand Down
1 change: 0 additions & 1 deletion src/MudBlazor.UnitTests/Components/SliderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ public void CheckInputSizeCssClass(Size size, string expectedSizeClass)
[TestCase(Color.Dark, "dark")]
[TestCase(Color.Transparent, "transparent")]
[TestCase(Color.Inherit, "inherit")]
[TestCase(Color.Surface, "surface")]
public void CheckColorCssClass(Color color, string expectedColorClass)
{
var comp = Context.RenderComponent<MudSlider<int>>(x => x.Add(p => p.Color, color));
Expand Down
2 changes: 1 addition & 1 deletion src/MudBlazor/Components/Avatar/MudAvatarGroup.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ partial class MudAvatarGroup : MudComponentBase
/// </summary>
[Parameter]
[Category(CategoryTypes.AvatarGroup.Appearance)]
public Color OutlineColor { get; set; } = Color.Surface;
public Color OutlineColor { get; set; }

/// <summary>
/// The size of the drop shadow when the number of avatars exceeds <see cref="Max"/>.
Expand Down
2 changes: 0 additions & 2 deletions src/MudBlazor/Enums/Color.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,5 @@ public enum Color
Transparent,
[Description("inherit")]
Inherit,
[Description("surface")]
Surface
}
}
10 changes: 4 additions & 6 deletions src/MudBlazor/Styles/components/_avatar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,13 @@
}

&.mud-avatar-group-outlined {
&.mud-avatar-group-outlined-transparent {
.mud-avatar:not(.mud-avatar-outlined) {
border-color: transparent;
}
.mud-avatar:not(.mud-avatar-outlined) {
border-color: var(--mud-palette-surface);
}

&.mud-avatar-group-outlined-surface {
&.mud-avatar-group-outlined-transparent {
.mud-avatar:not(.mud-avatar-outlined) {
border-color: var(--mud-palette-surface);
border-color: transparent;
}
}

Expand Down