summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--WebContent/release-notes.html1
-rw-r--r--shared/src/com/vaadin/shared/ui/ui/UIState.java8
2 files changed, 7 insertions, 2 deletions
diff --git a/WebContent/release-notes.html b/WebContent/release-notes.html
index 0285b7138d..64355bf62b 100644
--- a/WebContent/release-notes.html
+++ b/WebContent/release-notes.html
@@ -113,6 +113,7 @@
<li>Widgetset files and other pre-compressed resources are sent as gzip to compatible browsers.
This may interfere with custom response compression solutions that do not respect the Content-Encoding response header.</li>
<li>Unused methods related to the "out of sync" message have been removed from SystemMessages class.</li>
+ <li>All notifications use the WAI-ARIA alert role to be compatible with Jaws</li>
</ul>
<h3 id="knownissues">Known Issues and Limitations</h3>
<ul>
diff --git a/shared/src/com/vaadin/shared/ui/ui/UIState.java b/shared/src/com/vaadin/shared/ui/ui/UIState.java
index 2f51fef6ee..6f7a531eb6 100644
--- a/shared/src/com/vaadin/shared/ui/ui/UIState.java
+++ b/shared/src/com/vaadin/shared/ui/ui/UIState.java
@@ -43,12 +43,16 @@ public class UIState extends TabIndexState {
notificationConfigurations.put("humanized",
new NotificationTypeConfiguration("Info: ", null,
NotificationRole.ALERT));
+
+ // We use alert instead of status for all notifications because
+ // (at least) Jaws 16 and earlier fail to announce any role=status
+ // message in Chrome/Firefox
notificationConfigurations.put("tray",
new NotificationTypeConfiguration("Status: ", null,
- NotificationRole.STATUS));
+ NotificationRole.ALERT));
notificationConfigurations.put("assistive",
new NotificationTypeConfiguration("Note: ", null,
- NotificationRole.STATUS));
+ NotificationRole.ALERT));
}
/**
* State related to the Page class.