Permalink
Browse files

MDL-34300 JavaScript: Stop YUI from forcing z-index on moodle-core-no…

…tification
  • Loading branch information...
1 parent cce0d9a commit 03bd9e7b7818491ed808e4aff95e2ed9c6cd0ad1 @andrewnicols andrewnicols committed Feb 15, 2013
Showing with 5 additions and 1 deletion.
  1. +4 −0 lib/yui/notification/notification.js
  2. +1 −1 theme/base/style/core.css
View
4 lib/yui/notification/notification.js
@@ -77,6 +77,10 @@ Y.extend(DIALOGUE, Y.Panel, {
this.after('visibleChange', this.visibilityChanged, this);
this.render();
this.show();
+
+ // Workaround upstream YUI bug http://yuilibrary.com/projects/yui3/ticket/2532507
+ // and allow setting of z-index in theme.
+ this.get('boundingBox').setStyle('zIndex', null);
},
visibilityChanged : function(e) {
var titlebar;
View
2 theme/base/style/core.css
@@ -864,7 +864,7 @@ sup {vertical-align: super;}
background: none;
border: none;
/* Override the z-index set incorrectly by the YUI dialogue */
- z-index: 600!important;
+ z-index: 600;
}

0 comments on commit 03bd9e7

Please sign in to comment.