Skip to content

Commit

Permalink
[StepButton] Remove StepIconButton type (#45396)
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndai authored Feb 25, 2025
1 parent 8c0bb71 commit e70cfc7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
12 changes: 12 additions & 0 deletions docs/data/material/migration/upgrade-to-v7/upgrade-to-v7.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,3 +282,15 @@ The default `data-testid` prop has been removed from the icons in `@mui/icons-ma
### Removal of `MuiRating-readOnly` class from Rating

Class name `MuiRating-readOnly` was removed in favor of `Mui-readOnly` global class.

### StepButtonIcon type removed

The deprecated `StepButtonIcon` type has been removed. Use `StepButtonProps['icon']` instead.

```diff
- import { StepButtonIcon } from '@mui/material/StepButton';
+ import { StepButtonProps } from '@mui/material/StepButton';

-StepButtonIcon
+StepButtonProps['icon']
```
5 changes: 0 additions & 5 deletions packages/mui-material/src/StepButton/StepButton.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ import { OverrideProps } from '../OverridableComponent';
import { Theme } from '../styles';
import { StepButtonClasses } from './stepButtonClasses';

/**
* @deprecated use `StepButtonProps['icon']` instead.
*/
export type StepButtonIcon = React.ReactNode;

export interface StepButtonOwnProps {
/**
* Can be a `StepLabel` or a node to place inside `StepLabel` as children.
Expand Down

0 comments on commit e70cfc7

Please sign in to comment.