Skip to content

Commit

Permalink
[doc] add Snackbar migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
kodai3 committed Jul 28, 2020
1 parent c582a67 commit 691b96e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/src/pages/guides/migration-v4/migration-v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ This change affects almost all components where you're using the `component` pro
+<Slider onChange={(event: React.SyntheticEvent, value: unknown) => {}} />
```

### Snackbar

- The default value of `anchorOrigin` on Desktop is changed from `bottom center` to `bottom left`
```diff
-<Snackbar anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }} />
+<Snackbar anchorOrigin={{ vertical: 'bottom', horizontal: desktop ? 'left' : 'center' }} />
```

### TablePagination

- The customization of the table pagination's actions labels must be done with the `getItemAriaLabel` prop. This increases consistency with the `Pagination` component.
Expand Down

0 comments on commit 691b96e

Please sign in to comment.