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] Don't suggest putting a Switch inside a ListItemSecondaryAction #23018

Merged
merged 2 commits into from Oct 13, 2020

Conversation

mrcljx
Copy link
Contributor

@mrcljx mrcljx commented Oct 12, 2020

Avoid future cases like #23013

@oliviertassinari oliviertassinari added component: list This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation labels Oct 12, 2020
@mui-pr-bot
Copy link

mui-pr-bot commented Oct 12, 2020

Details of bundle changes

Generated by 🚫 dangerJS against d051b4a

@oliviertassinari
Copy link
Member

Looks good, I think that we could also explain for this test case the tradeoff around ListItemSecondaryAction.

@oliviertassinari oliviertassinari marked this pull request as ready for review October 12, 2020 19:11
@oliviertassinari oliviertassinari changed the base branch from master to next October 12, 2020 19:11
@@ -12,7 +12,7 @@ const useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
width: '100%',
maxWidth: '36ch',
maxWidth: 360,
Copy link
Member

Choose a reason for hiding this comment

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

done to have visual consistency with the other demos

@@ -9,7 +9,7 @@ const useStyles = makeStyles((theme: Theme) =>
root: {
width: '100%',
height: 400,
maxWidth: 300,
maxWidth: 360,
Copy link
Member

Choose a reason for hiding this comment

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

done to have visual consistency with the other demos

width={360}
itemSize={46}
itemCount={200}
overscanCount={5}
Copy link
Member

Choose a reason for hiding this comment

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

Add overscan to limit white areas

@oliviertassinari oliviertassinari merged commit 6f59621 into mui:next Oct 13, 2020
@oliviertassinari
Copy link
Member

@sirlantis It's a great first pull request on Material-UI 👌🏻. Thank you for working on it!

@mrcljx
Copy link
Contributor Author

mrcljx commented Oct 14, 2020

@oliviertassinari Thanks, but to be honest, you did the majority of it. So: double thanks. 👍

@mrcljx mrcljx deleted the patch-1 branch October 14, 2020 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: list This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants