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] Fix scrollbar on snackbar page #37657

Merged

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Jun 20, 2023

@oliviertassinari oliviertassinari added docs Improvements or additions to the documentation regression A bug, but worse labels Jun 20, 2023

export interface State extends SnackbarOrigin {
interface State extends SnackbarOrigin {
Copy link
Member Author

Choose a reason for hiding this comment

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

No need to export

@@ -17,23 +17,18 @@ export default function PositionedSnackbar() {
const { vertical, horizontal, open } = state;

const handleClick = (newState: SnackbarOrigin) => () => {
setState({ open: true, ...newState });
setState({ ...newState, open: true });
Copy link
Member Author

Choose a reason for hiding this comment

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

To be easier to scan, matching the code below

Comment on lines 28 to 30
<React.Fragment>
<Grid container justifyContent="center">
<Grid item>
Copy link
Member Author

Choose a reason for hiding this comment

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

Removed one <div>

Comment on lines -48 to -50
</Grid>

<Grid container justifyContent="center">
Copy link
Member Author

Choose a reason for hiding this comment

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

Code convention, no empty lines in JSX.

@oliviertassinari oliviertassinari added the bug 🐛 Something doesn't work label Jun 20, 2023
@mui-bot
Copy link

mui-bot commented Jun 20, 2023

Netlify deploy preview

https://deploy-preview-37657--material-ui.netlify.app/

Bundle size report

No bundle size changes

Generated by 🚫 dangerJS against cdb9ea4

Copy link
Member

@ZeeshanTamboli ZeeshanTamboli left a comment

Choose a reason for hiding this comment

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

Nice. I also pushed cdb9ea4 to fix the Direction Snackbar demo which was also changed in #37389.

@oliviertassinari oliviertassinari merged commit a089112 into mui:master Jun 21, 2023
18 checks passed
@oliviertassinari oliviertassinari deleted the docs-fix-snackbar-mobile branch June 21, 2023 11:42
@oliviertassinari
Copy link
Member Author

oliviertassinari commented Jun 21, 2023

Perfect, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work docs Improvements or additions to the documentation regression A bug, but worse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants