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

feat: add snackbar click to copy #3366

Merged
merged 6 commits into from
Nov 9, 2023

Conversation

fairlighteth
Copy link
Contributor

Summary

  • Adds a snackbar on click to copy embed code
Screen.Recording.2023-11-08.at.17.56.10.mov

@fairlighteth fairlighteth requested a review from a team November 8, 2023 17:58
Copy link

vercel bot commented Nov 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cosmos ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 9, 2023 2:31pm
swap-dev ✅ Ready (Inspect) Visit Preview Nov 9, 2023 2:31pm
widget-configurator ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 9, 2023 2:31pm

Copy link
Contributor

@anxolin anxolin left a comment

Choose a reason for hiding this comment

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

It's great!

If i nitpick. I find the contrast not super readable. Green letter on green background.

Also, normally the click feedback is not absolut positioned. Would it make sense to position it relative to the button the user clicks so the feedback is right there?

in case it helps:
https://stackoverflow.com/questions/75371693/is-it-possible-to-align-mui-snackbar-relative-to-its-parent-div-rather-than-to

disregard both comments if you think they are not good suggestions.

@fairlighteth
Copy link
Contributor Author

fairlighteth commented Nov 9, 2023

Refactored code:

  • Bigger embed code
  • Added embed code button also in drawer
  • Remove 'click outside' drawer close
Screenshot 2023-11-09 at 14 26 57

@fairlighteth
Copy link
Contributor Author

Merging, please review at your convenience post merge.

@fairlighteth fairlighteth merged commit 3379a73 into configurator-styling-2 Nov 9, 2023
10 of 11 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 9, 2023
@alfetopito alfetopito deleted the configurator-styling-3 branch November 10, 2023 10:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants