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 2016-08-02 21:32:16 -04:00
parent 823f69bb92
commit db0bac5a2b
22 changed files with 113 additions and 91 deletions

View file

@ -1,6 +1,6 @@
{
"name": "paper-input",
"version": "1.1.16",
"version": "1.1.17",
"description": "Material design text fields",
"authors": [
"The Polymer Authors"
@ -48,11 +48,11 @@
"web-component-tester": "^4.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
"_release": "1.1.16",
"_release": "1.1.17",
"_resolution": {
"type": "version",
"tag": "v1.1.16",
"commit": "0222d1d585c330c3ab47bb2fc16e3b5ec689ddd6"
"tag": "v1.1.17",
"commit": "61d482886c58324b682cea3c605695c31154e084"
},
"_source": "git://github.com/PolymerElements/paper-input.git",
"_target": "^1.1.11",

View file

@ -1,6 +1,6 @@
{
"name": "paper-input",
"version": "1.1.16",
"version": "1.1.17",
"description": "Material design text fields",
"authors": [
"The Polymer Authors"

View file

@ -73,7 +73,7 @@ style this element.
:host {
display: block;
}
:host([focused]) {
outline: none;
}
@ -97,6 +97,10 @@ style this element.
input:-ms-input-placeholder {
color: var(--paper-input-container-color, --secondary-text-color);
}
label {
pointer-events: none;
}
</style>
<paper-input-container no-label-float="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]">

View file

@ -43,6 +43,10 @@ style this element.
:host([hidden]) {
display: none !important;
}
label {
pointer-events: none;
}
</style>
<paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]">

View file

@ -161,6 +161,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
assert.isTrue(inputContent.classList.contains('label-is-floating'), 'label is floating');
});
test('label does not receive pointer events', function() {
var input = fixture('always-float-label');
var label = Polymer.dom(input.root).querySelector('label');
assert.equal(getComputedStyle(label).pointerEvents, 'none');
});
test('error message is displayed', function() {
var input = fixture('error');
forceXIfStamp(input);

View file

@ -125,6 +125,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
var inputContent = Polymer.dom(container.root).querySelector('.input-content');
assert.isTrue(inputContent.classList.contains('label-is-floating'), 'label is floating');
});
test('label does not receive pointer events', function() {
var input = fixture('always-float-label');
var label = Polymer.dom(input.root).querySelector('label');
assert.equal(getComputedStyle(label).pointerEvents, 'none');
});
});
suite('focus/blur events', function() {