You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notifications are highly configurable: you can set a theme variant, a duration, and a position. This is good, as it gives developers a lot of flexibility in creating the kinds of notifications they want. But it doesn't provide good out-of-the-box defaults for common types of notifications.
Describe the solution you'd like
A number of notification presets (vaguely similar to the notification types in Vaadin 8) that provide good default presets for common types of notifications:
Info
Use case example: "New data available, click refresh to load it"
Theme variant: default (light gray)
Duration: 10 seconds
Position: top-center
Success
Use case example: "Process X finished succesfully"
Theme variant: success (green)
Duration: 5 seconds
Position: bottom-center
Warning
Use case example: "Your session will expire in 5 minutes"
Would be nice if these presets were globally configurable somehow, but that can be a later enhancement, as these hardcoded presets will in no way affect existing applications or prevent the level of configurability we have today.
The text was updated successfully, but these errors were encountered:
Actually bundling theme variants like this might be problematic since they are theme-specific: currently only the Lumo theme has them; Material has none and the application might be using neither (although that would be rather niche).
Describe your motivation
Notifications are highly configurable: you can set a theme variant, a duration, and a position. This is good, as it gives developers a lot of flexibility in creating the kinds of notifications they want. But it doesn't provide good out-of-the-box defaults for common types of notifications.
Describe the solution you'd like
A number of notification presets (vaguely similar to the notification types in Vaadin 8) that provide good default presets for common types of notifications:
Info
Success
Warning
Error
Describe alternatives you've considered
No response
Additional context
Would be nice if these presets were globally configurable somehow, but that can be a later enhancement, as these hardcoded presets will in no way affect existing applications or prevent the level of configurability we have today.
The text was updated successfully, but these errors were encountered: