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

[material-ui][Chip] Deprecate composed classes #41235

Merged
merged 14 commits into from
Feb 23, 2024

Conversation

sai6855
Copy link
Contributor

@sai6855 sai6855 commented Feb 22, 2024

@sai6855 sai6855 marked this pull request as draft February 22, 2024 10:30
@sai6855 sai6855 added docs Improvements or additions to the documentation component: chip This is the name of the generic UI component, not the React module! deprecation New deprecation message package: material-ui Specific to @mui/material labels Feb 22, 2024
@sai6855 sai6855 changed the title [material-ui][Chip] Deprecate c omposed classes [material-ui][Chip] Deprecate composed classes Feb 22, 2024
@mui-bot
Copy link

mui-bot commented Feb 22, 2024

```

### Composed CSS classes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @DiegoAndai can you suggest description here similar to button classes description. Since multiple combinations of classes are deprecated, i'm not able to come up with description which address all types of combinations similar to Button, Alert

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would do a list:

The CSS classes that composed the following props were deprecated:

- `variant` | `clickable` | `deletable` and `color`
- `avatar` and `color` | `size`
- `icon` and `color` | `size`
- `deleteIcon` and `color` | `size`

Here's how to migrate:

What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah i guess this is the best we can do given multiple combinations. label and size was missing in this list, i added in latest commit.

@sai6855 sai6855 marked this pull request as ready for review February 23, 2024 12:30
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Feb 23, 2024
Copy link
Member

@DiegoAndai DiegoAndai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @sai6855!

I replied to your question

```

### Composed CSS classes

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would do a list:

The CSS classes that composed the following props were deprecated:

- `variant` | `clickable` | `deletable` and `color`
- `avatar` and `color` | `size`
- `icon` and `color` | `size`
- `deleteIcon` and `color` | `size`

Here's how to migrate:

What do you think?

@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Feb 23, 2024
Copy link
Member

@DiegoAndai DiegoAndai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@DiegoAndai DiegoAndai merged commit be1b296 into mui:master Feb 23, 2024
22 checks passed
@sai6855 sai6855 deleted the deprecate-chip-classes branch February 24, 2024 01:47
mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: chip This is the name of the generic UI component, not the React module! deprecation New deprecation message docs Improvements or additions to the documentation package: material-ui Specific to @mui/material
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants