Skip to content

Commit

Permalink
update migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 committed Feb 20, 2024
1 parent e9656ce commit 499e21d
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,9 @@ npx @mui/codemod@latest deprecations/pagination-item-classes <path>

### Composed CSS classes

The following CSS classes were deprecated:
The CSS classes that composed the `variant` and `color` prop values were removed. Here's how to migrate:

- `.MuiPaginationItem-textPrimary` deprecated in favor of `.MuiPaginationItem-text.MuiPaginationItem-colorPrimary`
- `.MuiPaginationItem-outlinedPrimary` deprecated in favor of `.MuiPaginationItem-outlined.MuiPaginationItem-colorPrimary`
- `.MuiPaginationItem-textSecondary` deprecated in favor of `.MuiPaginationItem-text.MuiPaginationItem-colorSecondary`
- `.MuiPaginationItem-outlinedSecondary` deprecated in favor of `.MuiPaginationItem-outlined.MuiPaginationItem-colorSecondary`

Here's an example on how to migrate:
Here's how to migrate:

```diff
-.MuiPaginationItem-textPrimary
Expand All @@ -193,7 +188,6 @@ Here's an example on how to migrate:
+.MuiPaginationItem-text.MuiPaginationItem-colorSecondary
-.MuiPaginationItem-outlinedSecondary
+.MuiPaginationItem-outlined.MuiPaginationItem-colorSecondary
/>
```

```diff
Expand Down

0 comments on commit 499e21d

Please sign in to comment.