Fixes to mw.notifications
authorEd Sanders <esanders@wikimedia.org>
Mon, 10 Apr 2017 15:13:20 +0000 (16:13 +0100)
committerEd Sanders <esanders@wikimedia.org>
Mon, 10 Apr 2017 15:14:13 +0000 (16:14 +0100)
* Fix cutting of drop shadows
* Use null as default empty value

Change-Id: I09b77161c3a2cc0ef586c08c7287a73bd1dd2066

resources/src/mediawiki/mediawiki.notification.css
resources/src/mediawiki/mediawiki.notification.js

index 147de92..633798d 100644 (file)
@@ -1,7 +1,8 @@
 .mw-notification-area {
        top: 0;
        right: 0;
-       padding: 1em 1em 0 0;
+       /* Padding on all sides so drop shadows aren't cut by overflow: hidden */
+       padding: 1em;
        width: 20em;
        line-height: 1.35;
        z-index: 10000;
index 4849f5a..d36c4a0 100644 (file)
                defaults: {
                        autoHide: true,
                        autoHideSeconds: 'short',
-                       tag: false,
-                       title: undefined,
-                       type: false
+                       tag: null,
+                       title: null,
+                       type: null
                },
 
                /**