Skip to content

[joy-ui][ButtonGroup] Broken styles with custom button elements #39372

Open
@phillip-winder

Description

@phillip-winder

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

https://codesandbox.io/s/affectionate-wiles-xzrrzp?file=/Demo.tsx

  1. Create custom Button:
const A = () => {
  return <Button>hi</Button>;
};
  1. Use Button in ButtonGroup
<ButtonGroup>
  <A />
  <A />
</ButtonGroup>

Current behavior 😯

The borders of the ButtonGroup are not rounded.

Expected behavior 🤔

The borders of the ButtonGroup should be rounded.

Context 🔦

No response

Your environment 🌎

@mui/joy 5.0.0-beta.9

Metadata

Metadata

Assignees

Labels

bug 🐛Something doesn't workcomponent: buttonThis is the name of the generic UI component, not the React module!designThis is about UI or UX design, please involve a designerpackage: joy-uiSpecific to @mui/joy

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions