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

Add a type of overlay/popup container that doesn't block interaction with the underlying layer #4836

Open
2 tasks done
dweymouth opened this issue May 9, 2024 · 0 comments

Comments

@dweymouth
Copy link
Contributor

Checklist

  • I have searched the issue tracker for open issues that relate to the same feature, before opening a new one.
  • This issue only relates to a single feature. I will open new issues for any other features.

Is your feature request related to a problem?

Widget.PopUp in both its modal and non-modal variants blocks interaction with the rest of the app below it. This is desirable in most cases but sometimes it is desirable to show an overlay item that doesn't block interaction. This would unlock features such as "error toasts" - displaying an error message to the user in-app in a popup that can be ignored but also x'ed out early, tool tips, among others.

Is it possible to construct a solution with the existing API?

Yes, with the app itself having a stack container as the window content with the main app layer below and a layer for floating overlays above it. This can lead to unclean code though as it leads to widgets or components that need to show a non-blocking overlay to have a reference to the top-level app container, which kind-of breaks encapsulation.

Describe the solution you'd like to see.

Something like widget.NewNonBlockingPopup maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant