Skip to content

Conversation

@kushagra010
Copy link
Contributor

Fixes: #33054

@mui-bot
Copy link

mui-bot commented Sep 29, 2022

Messages
📖 Netlify deploy preview: https://deploy-preview-34521--material-ui.netlify.app/

Details of bundle changes

Generated by 🚫 dangerJS against 7db5ccb

@hbjORbj hbjORbj added the scope: icon button Changes related to the icon button. label Sep 30, 2022
@hbjORbj hbjORbj changed the title [Material] custom color causes typeError in IconButton [IconButton] custom color causes type error Sep 30, 2022
@hbjORbj hbjORbj added the type: bug It doesn't behave as expected. label Sep 30, 2022
@michaldudak
Copy link
Member

michaldudak commented Oct 28, 2022

@siriwatknp would you mind reviewing it since you've been involved in the discussion in the issue?

@kushagra010 From what I can see, the PR is lacking tests.

@michaldudak michaldudak requested review from siriwatknp and removed request for michaldudak and mnajdova October 28, 2022 08:45
})`
: alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
: alpha(
theme.palette?.[ownerState.color]?.main ?? theme.palette.action.active,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
theme.palette?.[ownerState.color]?.main ?? theme.palette.action.active,
theme.palette?.[ownerState.color]?.main ?? theme.palette.action.hover,

@siriwatknp siriwatknp added the PR: needs test The pull request needs tests. label Nov 7, 2022
@siriwatknp siriwatknp removed the PR: needs test The pull request needs tests. label Nov 7, 2022
Copy link
Member

@siriwatknp siriwatknp left a 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. I pushed some update to simplify the logics.

@shahriarpshuvo
Copy link

When will this get merged?
This is a very annoying bug.

@siriwatknp
Copy link
Member

When will this get merged?

This is a very annoying bug.

It should be released next week, sorry for the delay.

@michaldudak michaldudak merged commit 75f5a8a into mui:master Nov 14, 2022
daniel-rabe pushed a commit to daniel-rabe/material-ui that referenced this pull request Nov 29, 2022
feliperli pushed a commit to jesrodri/material-ui that referenced this pull request Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: icon button Changes related to the icon button. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[IconButton] Custom non-palette color causes TypeError

6 participants