-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Conversation
Netlify deploy previewBundle size report |
``` | ||
|
||
### Composed CSS classes | ||
|
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this 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 | ||
|
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
part of #40417
Migration guide Preview: docs/data/material/migration/migrating-from-deprecated-apis/migrating-from-deprecated-apis.md
docs preview: https://deploy-preview-41235--material-ui.netlify.app/material-ui/api/chip/#classes