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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Fix undo/redo in live editor #35163

Merged
merged 1 commit into from Nov 15, 2022

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Nov 15, 2022

A continuation on #34870.

While I using the live environment (for a real use case), I realize that the UX wasn't great. See this reproduction:

  1. Open https://mui.com/material-ui/react-avatar/#letter-avatars
  2. Click on "Show the full source" button
  3. Make a change
  4. Press Cmd+Z (undo)
  5. 馃挜

I went with the YOLO solution. The clean solution would have been to store the session between each mode and to restore it, but this feels overkill.

Before

Screen.Recording.2022-11-15.at.23.33.09.mov

After

Screen.Recording.2022-11-15.at.23.34.15.mov

@oliviertassinari oliviertassinari added bug 馃悰 Something doesn't work docs Improvements or additions to the documentation scope: docs-infra Specific to the docs-infra product labels Nov 15, 2022
@mui-bot
Copy link

mui-bot commented Nov 15, 2022

Messages
馃摉 Netlify deploy preview: https://deploy-preview-35163--material-ui.netlify.app/

No bundle size changes

Generated by 馃毇 dangerJS against d605e5e

@oliviertassinari oliviertassinari enabled auto-merge (squash) November 15, 2022 22:41
@oliviertassinari oliviertassinari merged commit 30e42b8 into mui:master Nov 15, 2022
@oliviertassinari oliviertassinari deleted the live-edit-bug-history branch November 15, 2022 22:55
the-mgi pushed a commit to the-mgi/material-ui that referenced this pull request Nov 17, 2022
daniel-rabe pushed a commit to daniel-rabe/material-ui that referenced this pull request Nov 29, 2022
feliperli pushed a commit to jesrodri/material-ui that referenced this pull request Dec 6, 2022
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 scope: docs-infra Specific to the docs-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants