Hoo man has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/82122


Change subject: Add aria-live to mw notifications/jsMsg
......................................................................

Add aria-live to mw notifications/jsMsg

I had to experiment with this a lot and it still only seems
to work with Jaws + IE and NVDA + Firefox.
(NVDA + IE: http://community.nvda-project.org/ticket/1846 )
The aria-relevant is needed to prevent NVDA from speaking
every bubble twice.

Bug: 53483
Change-Id: I392a588a63e81ffc359afec79ef62c81c62861c7
---
M resources/mediawiki/mediawiki.notification.js
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/22/82122/1

diff --git a/resources/mediawiki/mediawiki.notification.js 
b/resources/mediawiki/mediawiki.notification.js
index 70f639c..d176c46 100644
--- a/resources/mediawiki/mediawiki.notification.js
+++ b/resources/mediawiki/mediawiki.notification.js
@@ -353,6 +353,11 @@
                var offset, $window = $( window );
 
                $area = $( '<div id="mw-notification-area" 
class="mw-notification-area mw-notification-area-layout"></div>' )
+                       // Some useful comment goes here
+                       .attr( {
+                               'aria-live': 'assertive',
+                               'aria-relevant' : 'additions'
+                       } )
                        // Pause auto-hide timers when the mouse is in the 
notification area.
                        .on( {
                                mouseenter: notification.pause,

-- 
To view, visit https://gerrit.wikimedia.org/r/82122
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I392a588a63e81ffc359afec79ef62c81c62861c7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Hoo man <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to