diff options
author | Jouni Koivuviita <jouni@jouni.me> | 2017-03-27 14:43:48 +0300 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-03-27 14:43:48 +0300 |
commit | 38ed444e7eb5ab8960a681fb8775f8e1e50a4c61 (patch) | |
tree | 3d6da6045287c4284880492d5000a7045e022093 /server | |
parent | fee9350a59c60aadb876bbdd8303552c1209c517 (diff) | |
download | vaadin-framework-38ed444e7eb5ab8960a681fb8775f8e1e50a4c61.tar.gz vaadin-framework-38ed444e7eb5ab8960a681fb8775f8e1e50a4c61.zip |
Add `closable` style to Error Notifications (#8903)
Add an additional stylename `critical-error` that styles the
notification like the Error-type, but without the close button.
Fixes #8296
Diffstat (limited to 'server')
-rw-r--r-- | server/src/main/java/com/vaadin/ui/themes/ValoTheme.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/src/main/java/com/vaadin/ui/themes/ValoTheme.java b/server/src/main/java/com/vaadin/ui/themes/ValoTheme.java index 2a6f87a7e1..93235ed00f 100644 --- a/server/src/main/java/com/vaadin/ui/themes/ValoTheme.java +++ b/server/src/main/java/com/vaadin/ui/themes/ValoTheme.java @@ -110,6 +110,13 @@ public class ValoTheme { */ public static final String NOTIFICATION_FAILURE = "failure"; + /** + * Styles the notification to look like {@link Type#ERROR_MESSAGE}, without + * setting the position and delay and without the close button. Can be + * combined with any other Notification style. + */ + public static final String NOTIFICATION_CRITICAL_ERROR = "critical-error"; + /*************************************************************************** * * Label styles |