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

Skip to content

Conversation

danielchalmers
Copy link
Member

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (fix or improvement to the website or code docs)

Checklist

  • The PR is submitted to the correct branch (dev).
  • My code follows the code style of this project.
  • I've added relevant tests.

@danielchalmers danielchalmers requested a review from Copilot July 3, 2025 01:23
@github-actions github-actions bot added the breaking change This change will require consumer code updates label Jul 3, 2025
Copy link
Contributor

@Copilot Copilot AI left a 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 in MudStepper.razor.cs
  • Removed inline style="@StepStyle" from the completed-step <div> in MudStepper.razor
  • Cleaned up MudStep.cs by removing the Styles builder and adjusting the Classname 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 dropping StepStyle.
        <div class="@StepClassname mud-stepper-complete">

Copy link

sonarqubecloud bot commented Jul 3, 2025

Copy link

codecov bot commented Jul 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.21%. Comparing base (994aa57) to head (fe66fdf).
Report is 2 commits behind head on dev.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@danielchalmers danielchalmers merged commit e8fead3 into MudBlazor:dev Jul 3, 2025
6 checks passed
@danielchalmers danielchalmers deleted the stepper-remove-step-style branch July 3, 2025 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change This change will require consumer code updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant