Open dkoo opened 2 years ago
Agreed. We should keep the "error" message at the top only for newspack debug
in fact, we could probably redesign the debug warning
I dig the new design in your second screenshot! Although, it still might get lost on screens with a lot of vertical scroll (e.g. the Site Design wizard). Should we consider showing it directly above the "cancel"/"save" buttons so it's close to the point of interaction?
Another idea – "toaster" overlay messaging. Surely won't get lost.
Edit: as @thomasguillot suggested, Gutenberg offers the Snackbar
component
The Snackbar component doesn't seem reliable outside of the editor at the moment.
Might be worth creating our own light Toaster/Snackbar component.
Let's use a toaster component and I can style it like the snackbar.
Is your feature request related to a problem? Please describe. As @miguelpeixe and I were discussing in #1424, the wizard's error message component that appears at the very top of the wizard gets visually lost very easily:
Describe the solution you'd like Ideally, error messages should be shown in a prominent location near the point of interaction that triggered the error, or in an unmissable place (like in a modal overlay). Can we establish a new standard style/location for error messages in wizard pages?