update components

This commit is contained in:
Luke Pulverenti 2016-03-23 12:01:49 -04:00
parent 8f19e02116
commit d2d7f7e865
5 changed files with 85 additions and 36 deletions

View file

@ -16,12 +16,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.1.79",
"_release": "1.1.79",
"version": "1.1.80",
"_release": "1.1.80",
"_resolution": {
"type": "version",
"tag": "1.1.79",
"commit": "2b23575ee295d72e1e8c5d55949bf06cce0c8def"
"tag": "1.1.80",
"commit": "babf2d95fc689946e18922a8c9a782ad40d250fa"
},
"_source": "git://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "~1.1.5",

View file

@ -113,7 +113,7 @@
transition: opacity ease-out 0.2s;
}
.paperDialog.opened + .dialogBackdrop {
.dialogBackdrop.opened {
opacity: .6;
}

View file

@ -35,6 +35,7 @@
function onDialogClosed() {
removeBackdrop(dlg);
dlg.classList.remove('opened');
if (removeScrollLockOnClose) {
document.body.classList.remove('noScroll');
@ -77,25 +78,20 @@
dlg.classList.remove('hide');
// Use native methods if available
var hasManualBackdrop = false;
if (dlg.showModal) {
if (dlg.getAttribute('modal')) {
dlg.showModal();
} else {
addBackdropOverlay(dlg);
hasManualBackdrop = true;
dlg.show();
}
// Undo the auto-focus applied by the native dialog element
safeBlur(document.activeElement);
} else {
addBackdropOverlay(dlg);
hasManualBackdrop = true;
}
if (!hasManualBackdrop) {
dlg.classList.add('opened');
}
dlg.classList.add('opened');
if (center) {
centerDialog(dlg);
@ -135,7 +131,7 @@
// Doing this immediately causes the opacity to jump immediately without animating
setTimeout(function () {
dlg.classList.add('opened');
backdrop.classList.add('opened');
}, 0);
backdrop.addEventListener('click', function () {