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

Proposal: Add snackbar notification when unlocking content only blocks #61554

Open
richtabor opened this issue May 10, 2024 · 4 comments · May be fixed by #61845
Open

Proposal: Add snackbar notification when unlocking content only blocks #61554

richtabor opened this issue May 10, 2024 · 4 comments · May be fixed by #61845
Labels
[Feature] Block Locking The API allowing for the ability to lock/unlock blocks [Type] Enhancement A suggestion for improvement.

Comments

@richtabor
Copy link
Member

Perhaps there is a persistent snackbar that renders when you opt to unlock a content-only locked block.

This would allow you to easily re-lock a temporarily unlocked block, instead of having to find the "Done" control on the parent locked block. I'd expect that selecting "Done" in the block toolbar of the parent block would dismiss the snackbar, and clicking the "Lock" call the action would re-lock the block and dismiss the snackbar.

Perhaps the copy needs refinement, but I think it's an interesting approach to be able to easily re-lock a recently unlocked content-only block.

CleanShot 2024-05-10 at 13 47 52

I thought of this while reviewing #61127.

@richtabor richtabor added [Type] Enhancement A suggestion for improvement. [Feature] Block Locking The API allowing for the ability to lock/unlock blocks labels May 10, 2024
@kevin940726
Copy link
Member

I don't think there's a way to add persistent snackbars for now, so that will have to be implemented separately. Do you think it's still worth it when the snackbar automatically dismisses itself after a timeout?

@talldan
Copy link
Contributor

talldan commented May 22, 2024

Two things I've been thinking about in relation to this:

  • How does it work when there's a persistent snackbar and a non-persistent snackbar at the same time? It might be a simple thing, but I'm trying to imagine it right now 😄
  • The action buttons that appear in a snackbar is probably more of an affordance for mouse/trackpad users, I'm not sure whether users that rely on keyboard input primarily could navigate to it (in my testing I couldn't find a way). I guess the point I'm making here is that the snackbar action has never been considered the primary way to achieve something, more of a secondary convenience. It might be possible to make it a 'navigable region' or implement a shortcut to get into the snackbar list, and when focus is inside a snackbar maybe freeze them so they don't disappear. Discoverability is another matter (though it's a major issue with the current UI too).

@kevin940726
Copy link
Member

There's also a notice style which seems more like a prompt message.

image

I guess this is only meant to be a secondary way to access the "Done" action in the block toolbar after all, so either UI should help. A better UX can be redesigned in the future. We just want to make sure that the advantages outweigh the disadvantages.

@kevin940726
Copy link
Member

I opened #61845 to help testing and figure out a better UX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Block Locking The API allowing for the ability to lock/unlock blocks [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants