Skip to content

Commit

Permalink
Add migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle committed Jan 24, 2025
1 parent 1e92a72 commit fcf345e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions docs/data/migration/migration-pickers-v7/migration-pickers-v7.md
Original file line number Diff line number Diff line change
Expand Up @@ -1589,6 +1589,39 @@ If you were using them, you need to replace them with the following code:
+ extends BaseMultiInputPickersTextFieldProps<true> {}
```

## Theme breaking change

### `MuiPickersPopper`

The theme entry have been renamed to have a coherent `Picker` / `Pickers` prefix:

```diff
const theme = createTheme({
components: {
- MuiPickersPopper: {
+ MuiPickerPopper: {
styleOverrides: {},
},
},
});
```

The props that can be overridden have also been limited to the one that did not cause any bugs:

```tsx
const theme = createTheme({
components: {
MuiPickerPopper: {
defaultProps: {
// Those are now the props with support for theme default props
position: "bottom"
classes: { root: "custom-root-class}
},
},
},
});
```
## ✅ Rename `date-fns` adapter imports
:::warning
Expand Down

0 comments on commit fcf345e

Please sign in to comment.