-
-
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
[IconButton] custom color causes type error #34521
[IconButton] custom color causes type error #34521
Conversation
|
@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. |
...(!ownerState.disableRipple && { | ||
'&:hover': { | ||
backgroundColor: theme.vars | ||
? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${ | ||
theme.vars.palette.action.hoverOpacity | ||
})` | ||
: alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity), | ||
: alpha( | ||
theme.palette?.[ownerState.color]?.main ?? theme.palette.action.active, |
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.
theme.palette?.[ownerState.color]?.main ?? theme.palette.action.active, | |
theme.palette?.[ownerState.color]?.main ?? theme.palette.action.hover, |
…material-custom-color-causes-typeError-iconButton
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. I pushed some update to simplify the logics.
When will this get merged? |
It should be released next week, sorry for the delay. |
Co-authored-by: siriwatknp <[email protected]>
Co-authored-by: siriwatknp <[email protected]>
Fixes: #33054