You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯
When a buttongroup button with variant outlined and a different color than primary set on the individual button is hovered over, the border is palette.primary.main instead of palette[color].x.
Expected Behavior 🤔
The color prop should also influence the border color on hover. This works when color is set on the ButtonGroup, but not when it is set on the individual buttons.
To be clear: my intent is to be able to set two different colors for the buttons in a buttongroup.
Possibly this is not an intended way of working (having different colors per button), but we have several buttons from our material-ui v4 codebase which worked fine but started misbehaving in v5.
@ZeeshanTamboli if we are now providing the color via context, does the ButtonGroup even needs to set the borderColor? We can still set the borederRadius
Current Behavior 😯
When a buttongroup button with variant
outlined
and a differentcolor
thanprimary
set on the individual button is hovered over, the border ispalette.primary.main
instead ofpalette[color].x
.Expected Behavior 🤔
The color prop should also influence the border color on hover. This works when
color
is set on the ButtonGroup, but not when it is set on the individual buttons.To be clear: my intent is to be able to set two different colors for the buttons in a buttongroup.
Possibly this is not an intended way of working (having different colors per button), but we have several buttons from our material-ui v4 codebase which worked fine but started misbehaving in v5.
Steps to Reproduce 🕹
https://codesandbox.io/s/mui-buttongroup-color-bug-t37rv?file=/src/Demo.tsx
Your Environment 🌎
`npx @mui/envinfo`
Browser: Chrome 95
No env info needed, codesandbox shows the bug.
The text was updated successfully, but these errors were encountered: