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

[StepButton] Remove StepIconButton type #45396

Merged
merged 2 commits into from
Feb 25, 2025
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
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 @@ -228,3 +228,15 @@ npx @mui/codemod@next v7.0.0/input-label-size-normal-medium <path/to/folder>
### Removal of `data-testid` prop from `SvgIcon`

The default `data-testid` prop has been removed from the icons in `@mui/icons-material` in production bundles. This change ensures that the `data-testid` prop is only defined where needed, reducing the potential for naming clashes and removing unnecessary properties in production.

### 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