Skip to content
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

[docs] Simplify customization examples in ButtonUnstyled demos #32092

Merged
merged 1 commit into from
Apr 4, 2022

Conversation

michaldudak
Copy link
Member

@michaldudak michaldudak commented Apr 1, 2022

ButtonUnstyled demos show the simpler styled(ButtonUnstyled) approach where possible.
It reduced the number of rendered components and allow additional customization (like rendering an a instead of a button).

https://deploy-preview-32092--material-ui.netlify.app/base/react-button/

@michaldudak michaldudak added component: button This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation package: base-ui Specific to @mui/base labels Apr 1, 2022
@mui-bot
Copy link

mui-bot commented Apr 1, 2022

No bundle size changes

Generated by 🚫 dangerJS against 93c1dc6

Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

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

Great, thanks for this simplification 👍. I think that it's much better for the design systems teams to use base. I would argue a best practice (with the previous pattern a footgun)

I would expect that design system teams will take our MUI Base demos, change the CSS, and expose this to their company's developer (A) as a package. After this change, (A) can more easily add another layer of customization.

@michaldudak michaldudak merged commit b797a58 into mui:master Apr 4, 2022
@michaldudak michaldudak deleted the button-demos-simplification branch April 4, 2022 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: button This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation package: base-ui Specific to @mui/base
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants