From 2f6d5e0d8c7cf4912bb82207c0dbe26101d168cb Mon Sep 17 00:00:00 2001 From: michaelvogt Date: Tue, 7 May 2013 15:33:43 +0300 Subject: Tooltip accessibility fixes (#11799) Remove previously added attribute for WAI-ARIA live area Set overlay container as live area instead Change-Id: Ie75c2993fdb42f29f307cbd294ae3352d2ef1ce3 --- server/src/com/vaadin/ui/UI.java | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'server') diff --git a/server/src/com/vaadin/ui/UI.java b/server/src/com/vaadin/ui/UI.java index 2e9570fa09..e077b003b8 100644 --- a/server/src/com/vaadin/ui/UI.java +++ b/server/src/com/vaadin/ui/UI.java @@ -1333,4 +1333,28 @@ public abstract class UI extends AbstractSingleComponentContainer implements getState().pushMode = pushMode; } + /** + * Get the label that is added to the container element, where tooltip, + * notification and dialogs are added to. + * + * @return the label of the container + */ + public String getOverlayContainerLabel() { + return getState().overlayContainerLabel; + } + + /** + * Sets the label that is added to the container element, where tooltip, + * notifications and dialogs are added to. + *

+ * This is helpful for users of assistive devices, as this element is + * reachable for them. + *

+ * + * @param overlayContainerLabel + * label to use for the container + */ + public void setOverlayContainerLabel(String overlayContainerLabel) { + getState().overlayContainerLabel = overlayContainerLabel; + } } -- cgit v1.2.3