Skip to content

Commit

Permalink
update migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
m4theushw committed Apr 23, 2021
1 parent 5f6ae1a commit c078faf
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 @@ -158,6 +158,14 @@ export default function PlainCssPriority() {
+theme.palette.augmentColor({ color: red, name: 'brand' });
```

- The `theme.typography.round` helper was removed because it was no longer used. If you need it, use the function below:

```js
function round(value) {
return Math.round(value * 1e5) / 1e5;
}
```

#### Upgrade helper

For a smoother transition, the `adaptV4Theme` helper allows you to iteratively upgrade some of the theme changes to the new theme structure.
Expand Down

0 comments on commit c078faf

Please sign in to comment.