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

Remove keycode, reduce bundle size #162

Merged
merged 1 commit into from
Apr 7, 2020

Conversation

oliviertassinari
Copy link
Contributor

@oliviertassinari oliviertassinari commented Apr 5, 2020

A simple win I noticed looking at the source of the design system. You can learn more about how it can work in mui/material-ui#14248 (it only works with synthetic events).

@oliviertassinari
Copy link
Contributor Author

I'm looking into how we can increase the usage of the Material-UI components in the OSS community, while the unstyled and style engine interop stories we have for v5 is meant to greatly help, we might not get it stable before early 2021. For now, I'm looking at existing opportunities that can benefit everybody as well as learning more about the use cases.

If you are interested, I have noticed that we can win 1.6 kb with a change of the Modal: 6.5 kB -> 4.9 kB.

Capture d’écran 2020-04-05 à 16 48 56

@domyen
Copy link
Member

domyen commented Apr 7, 2020

Thanks @oliviertassinari will take a deeper look in the next couple of days. Appreciate the link to the MUI issue 🙏

Copy link
Contributor

@kylesuss kylesuss left a comment

Choose a reason for hiding this comment

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

Nice one, thanks @oliviertassinari . Just pulled it down to try it out. Easy win!

@kylesuss kylesuss merged commit 45fc437 into storybookjs:master Apr 7, 2020
@oliviertassinari oliviertassinari deleted the remove-keycode branch April 7, 2020 16:07
@ndelangen
Copy link
Member

🚀 PR was released in v5.1.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants