1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2015-06-25 21:13:51 -04:00
parent c4dadd58bd
commit cee4794cd3
64 changed files with 1378 additions and 297 deletions

View file

@ -1,6 +1,6 @@
{
"name": "paper-dialog-behavior",
"version": "1.0.2",
"version": "1.0.4",
"description": "Implements a behavior used for material design dialogs",
"authors": "The Polymer Authors",
"keywords": [
@ -34,11 +34,11 @@
"web-component-tester": "*",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
"_release": "1.0.2",
"_release": "1.0.4",
"_resolution": {
"type": "version",
"tag": "v1.0.2",
"commit": "156945a20318c11bb65d0bc83ef402262c3071ca"
"tag": "v1.0.4",
"commit": "09662387b0bc55651dd7b9ef8d38b3b8f55ecf3c"
},
"_source": "git://github.com/PolymerElements/paper-dialog-behavior.git",
"_target": "^1.0.0",

View file

@ -1,6 +1,6 @@
{
"name": "paper-dialog-behavior",
"version": "1.0.2",
"version": "1.0.4",
"description": "Implements a behavior used for material design dialogs",
"authors": "The Polymer Authors",
"keywords": [

View file

@ -52,7 +52,7 @@ Custom property | Description | Default
### Accessibility
This element has `role="dialog"` by default. Depending on the context, it may be more appropriate
to override this attribute with `role="alertdialog"`. The header (a `<h2>` element) will
to override this attribute with `role="alertdialog"`.
If `modal` is set, the element will set `aria-modal` and prevent the focus from exiting the element.
It will also ensure that focus remains in the dialog.
@ -173,15 +173,17 @@ The `aria-labelledby` attribute will be set to the header element, if one exists
_onDialogClick: function(event) {
var target = event.target;
while (target !== this) {
if (target.hasAttribute('dialog-dismiss')) {
this._updateClosingReasonConfirmed(false);
this.close();
break;
} else if (target.hasAttribute('dialog-confirm')) {
this._updateClosingReasonConfirmed(true);
this.close();
break;
while (target && target !== this) {
if (target.hasAttribute) {
if (target.hasAttribute('dialog-dismiss')) {
this._updateClosingReasonConfirmed(false);
this.close();
break;
} else if (target.hasAttribute('dialog-confirm')) {
this._updateClosingReasonConfirmed(true);
this.close();
break;
}
}
target = target.parentNode;
}

View file

@ -28,7 +28,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
:host > ::content > .no-padding {
padding: 0;
};
}
:host > ::content > *:first-child {
margin-top: 24px;

View file

@ -33,6 +33,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<test-dialog>
<p>Dialog</p>
<div class="buttons">
<button extra>extra</button>
<button dialog-dismiss>dismiss</button>
<button dialog-confirm>confirm</button>
</div>
@ -164,6 +165,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
});
});
test('removing a child element on click does not cause an exception', function(done) {
var dialog = fixture('basic');
runAfterOpen(dialog, function() {
var button = Polymer.dom(dialog).querySelector('[extra]');
button.addEventListener('click', function(event) {
Polymer.dom(event.target.parentNode).removeChild(event.target);
// should not throw exception here
done();
});
button.click();
});
});
});
suite('a11y', function() {