@@ -38,11 +38,11 @@ var __meta__ = { // jshint ignore:line
3838 RIGHT = "right" ,
3939 UP = "up" ,
4040 NS = ".kendoNotification" ,
41- WRAPPER = '<div class="k-widget k-popup k-notification"></div>' ,
41+ WRAPPER = '<div role="alert" aria-live="polite" class="k-widget k-popup k-notification"></div>' ,
4242 TEMPLATE = '<div class="k-notification-wrap">' +
43- '<span class="k-icon k-i-#= typeIcon#" title="#= typeIcon#"></span>' +
43+ '<span class="k-icon k-i-#: typeIcon#" title="#: typeIcon#"></span>' +
4444 '<div class="k-notification-content">#=content#</div>' +
45- '<span class="#: closeButton ? "" : "k-hidden"# k-icon k-i-close" title="Hide"></span>' +
45+ '<span aria-hidden="true" class="#: closeButton ? "" : "k-hidden"# k-icon k-i-close" title="Hide"></span>' +
4646 '</div>' ,
4747 SAFE_TEMPLATE = TEMPLATE . replace ( "#=content#" , "#:content#" ) ;
4848
@@ -89,6 +89,7 @@ var __meta__ = { // jshint ignore:line
8989 width : null ,
9090 height : null ,
9191 templates : [ ] ,
92+ title : null ,
9293 animation : {
9394 open : {
9495 effects : "fade:in" ,
@@ -353,12 +354,15 @@ var __meta__ = { // jshint ignore:line
353354 var that = this ,
354355 options = that . options ,
355356 wrapper = $ ( WRAPPER ) ,
357+ contentId = kendo . guid ( ) ,
356358 args , defaultArgs ;
357359
358360 if ( ! type ) {
359361 type = INFO ;
360362 }
361363
364+ wrapper . attr ( "aria-label" , type ) ;
365+
362366 if ( content !== null && content !== undefined && content !== "" ) {
363367
364368 if ( kendo . isFunction ( content ) ) {
@@ -377,10 +381,16 @@ var __meta__ = { // jshint ignore:line
377381 . addClass ( KNOTIFICATION + "-" + type )
378382 . toggleClass ( KNOTIFICATION + "-button" , options . button )
379383 . toggleClass ( KNOTIFICATION + "-closable" , options . button )
380- . attr ( "data-role" , "alert" )
384+ . attr ( {
385+ "data-role" : "alert" ,
386+ title : options . title
387+ } )
381388 . css ( { width : options . width , height : options . height } )
382389 . append ( that . _getCompiled ( type , safe ) ( args ) ) ;
383390
391+ wrapper . find ( ".k-notification-content" ) . attr ( "id" , contentId ) ;
392+ wrapper . attr ( "aria-describedby" , contentId ) ;
393+
384394 that . angular ( "compile" , function ( ) {
385395 return {
386396 elements : wrapper ,
0 commit comments