-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
MudStepper: Remove StepStyle property #11589
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
MudStepper: Remove StepStyle property #11589
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes the now-unnecessary StepStyle
parameter from MudStepper
in favor of using StepClass
exclusively, and updates related render logic.
- Deleted the
StepStyle
property and its XML doc inMudStepper.razor.cs
- Removed inline
style="@StepStyle"
from the completed-step<div>
inMudStepper.razor
- Cleaned up
MudStep.cs
by removing theStyles
builder and adjusting theClassname
builder
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
MudStepper.razor.cs | Removed StepStyle parameter and its docs |
MudStepper.razor | Dropped the inline style attribute from steps |
MudStep.cs | Removed Styles property and revised Classname builder |
Comments suppressed due to low confidence (1)
src/MudBlazor/Components/Stepper/MudStepper.razor:50
- [nitpick] Verify that all other step rendering blocks (e.g., active, inactive, error states) also have their
style
attributes removed to maintain consistency after droppingStepStyle
.
<div class="@StepClassname mud-stepper-complete">
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #11589 +/- ##
=======================================
Coverage 91.21% 91.21%
=======================================
Files 466 466
Lines 14699 14699
Branches 2855 2854 -1
=======================================
Hits 13407 13407
Misses 646 646
Partials 646 646 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
This PR was spun off from #11407 because the flexibility of an experimental component allows us to remove this property earlier and without prior obsoletion. See that PR for more info on best practices.
In short: Use StepClass instead.
How Has This Been Tested?
Type of Changes
Checklist
dev
).