From 38ed444e7eb5ab8960a681fb8775f8e1e50a4c61 Mon Sep 17 00:00:00 2001 From: Jouni Koivuviita Date: Mon, 27 Mar 2017 14:43:48 +0300 Subject: 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 --- server/src/main/java/com/vaadin/ui/themes/ValoTheme.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'server') 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 -- cgit v1.2.3