diff options
author | michaelvogt <michael@vaadin.com> | 2013-05-07 15:33:43 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-05-17 10:42:26 +0000 |
commit | 2f6d5e0d8c7cf4912bb82207c0dbe26101d168cb (patch) | |
tree | c76690fc065077e8d04b01a486c81fa56bb249c0 /server/src/com/vaadin/ui | |
parent | 6c64757b35fa4f0f1100546f1a0bc44b71f87a85 (diff) | |
download | vaadin-framework-2f6d5e0d8c7cf4912bb82207c0dbe26101d168cb.tar.gz vaadin-framework-2f6d5e0d8c7cf4912bb82207c0dbe26101d168cb.zip |
Tooltip accessibility fixes (#11799)
Remove previously added attribute for WAI-ARIA live area
Set overlay container as live area instead
Change-Id: Ie75c2993fdb42f29f307cbd294ae3352d2ef1ce3
Diffstat (limited to 'server/src/com/vaadin/ui')
-rw-r--r-- | server/src/com/vaadin/ui/UI.java | 24 |
1 files changed, 24 insertions, 0 deletions
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. + * <p> + * This is helpful for users of assistive devices, as this element is + * reachable for them. + * </p> + * + * @param overlayContainerLabel + * label to use for the container + */ + public void setOverlayContainerLabel(String overlayContainerLabel) { + getState().overlayContainerLabel = overlayContainerLabel; + } } |