-
-
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
Add Framer X wrapper components #17797
Conversation
@material-ui/core: parsed: +0.09% , gzip: +0.07% Details of bundle changes.Comparing: 7f09ea4...4a887b6
|
91e7929
to
79bbe00
Compare
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.
Time to try framer I guess. Great job 👍
We should connect the framer worktree with the root worktree. framer worktree has an implicit dependency on /docs
and scripts concerning framer are placed in the root. In it's current state it's unclear which dependencies are used.
@@ -99,7 +99,7 @@ const ListItem = React.forwardRef(function ListItem(props, ref) { | |||
component: componentProp, | |||
ContainerComponent = 'li', | |||
ContainerProps: { className: ContainerClassName, ...ContainerProps } = {}, | |||
dense, | |||
dense = false, |
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.
The state can come from the parent list too, it would override it.
dense = false, | |
dense, |
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.
How would a default value override it?
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.
Oh ok, my bad, it won't. I have assumed we were using dense !== undefined
.
But shouldn't we change the merge dense check logic? If the list can be not dense and the list item dense, why prevent the opposite (list dense and list item not dense)?
@@ -0,0 +1,35 @@ | |||
{ | |||
"name": "material-ui-framer", |
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.
Should we name it @material-ui/framer?
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.
I don't know how namespaces work in Framer, but I suspect they're used for Team (private) packages. Not sure it really matters though, as the name isn't visible.
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.
Ok, do we control the name the package is published on npm with?
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.
npm?
🥁 |
Well done! For the MUI icon, did you use https://github.com/mui-org/material-ui/blob/master/docs/static/brand.png? |
No, https://github.com/mui-org/material-ui/blob/master/docs/static/brand.png (since the example icon had a transparent background), with some extra padding. It could perhaps have used a bit more - just didn't want to make the logo too small. Next release... |
Known issues:
Todo: