Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
MudStepper: Remove StepStyle property
  • Loading branch information
danielchalmers committed Jul 3, 2025
commit 813eb1ed868ce38c0c3a19f4b6fdb2aab1bae355
8 changes: 2 additions & 6 deletions src/MudBlazor/Components/Stepper/MudStep.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ public MudStep()
internal ParameterState<bool> DisabledState { get; private set; }
internal ParameterState<bool> HasErrorState { get; private set; }

internal string Styles => new StyleBuilder()
.AddStyle(Parent?.StepStyle)
.AddStyle(Style)
.Build();

internal string LabelClassname =>
new CssBuilder("mud-step-label")
.AddClass("mud-step-label-active", IsActive)
Expand All @@ -56,7 +51,8 @@ public MudStep()
.AddClass($"mud-{(ErrorStepColor.HasValue ? ErrorStepColor.Value.ToDescriptionString() : Parent?.ErrorStepColor.ToDescriptionString())}-text", HasErrorState)
.Build();

internal string Classname => new CssBuilder(Parent?.StepClassname)
internal string Classname => new CssBuilder()
.AddClass(Parent?.StepClassname)
.AddClass(Class)
.Build();

Expand Down
4 changes: 2 additions & 2 deletions src/MudBlazor/Components/Stepper/MudStepper.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@namespace MudBlazor
@namespace MudBlazor
@using MudBlazor.Resources
@using MudBlazor.Utilities
@inherits MudComponentBase
Expand Down Expand Up @@ -47,7 +47,7 @@

@if (IsCompleted && CompletedContent is not null)
{
<div class="@StepClassname mud-stepper-complete" style="@StepStyle">
<div class="@StepClassname mud-stepper-complete">
@CompletedContent
</div>
}
Expand Down Expand Up @@ -157,7 +157,7 @@
</div>;

RenderFragment StepContent(MudStep step) =>
@<div @attributes="@step.UserAttributes" class="@step.Classname" style="@step.Styles" role="tabpanel" aria-labelledby="@step.Title" tabindex="0">

Check failure on line 160 in src/MudBlazor/Components/Stepper/MudStepper.razor

View workflow job for this annotation

GitHub Actions / Build and test mudblazor projects / Build and test

'MudStep' does not contain a definition for 'Styles' and no accessible extension method 'Styles' accepting a first argument of type 'MudStep' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 160 in src/MudBlazor/Components/Stepper/MudStepper.razor

View workflow job for this annotation

GitHub Actions / Build and test mudblazor projects / Build and test

'MudStep' does not contain a definition for 'Styles' and no accessible extension method 'Styles' accepting a first argument of type 'MudStep' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 160 in src/MudBlazor/Components/Stepper/MudStepper.razor

View workflow job for this annotation

GitHub Actions / Build and test mudblazor projects / Build and test

'MudStep' does not contain a definition for 'Styles' and no accessible extension method 'Styles' accepting a first argument of type 'MudStep' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 160 in src/MudBlazor/Components/Stepper/MudStepper.razor

View workflow job for this annotation

GitHub Actions / Build and test mudblazor projects / Build and test

'MudStep' does not contain a definition for 'Styles' and no accessible extension method 'Styles' accepting a first argument of type 'MudStep' could be found (are you missing a using directive or an assembly reference?)
@if (Vertical)
{
<MudCollapse Expanded="step == ActiveStep">
Expand Down
10 changes: 0 additions & 10 deletions src/MudBlazor/Components/Stepper/MudStepper.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,16 +218,6 @@ public MudStepper()
[Category(CategoryTypes.List.Appearance)]
public string? StepClass { get; set; }

/// <summary>
/// The CSS styles applied to all steps.
/// </summary>
/// <remarks>
/// Defaults to <c>null</c>.
/// </remarks>
[Parameter]
[Category(CategoryTypes.List.Appearance)]
public string? StepStyle { get; set; }

/// <summary>
/// Centers the labels for each step below the circle.
/// </summary>
Expand Down
Loading