-
-
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
[joy-ui][AccordionGroup] Fix console warning when using custom color #38950
Conversation
Netlify deploy previewhttps://deploy-preview-38950--material-ui.netlify.app/ @material-ui/core: parsed: +Infinity% , gzip: +Infinity% Bundle size reportDetails of bundle changes (Toolpad) |
|
||
it('should not warn when using custom color', () => { | ||
expect(() => { | ||
// @ts-expect-error as `custom` color is not part of the type system |
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.
Instead of using @ts-expect-error
, we can follow this guide (https://mui.com/joy-ui/customization/theme-colors/#adding-new-palettes) and fix ts
issue, but i felt it will become bit over board for the test
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.
👏 Thanks for the fix!
closes: #38688
resolves: #38688 (comment) comment