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

update textarea

This commit is contained in:
Luke Pulverenti 2016-06-23 01:25:16 -04:00
parent b1cca31fa5
commit b3e4c65c0b
29 changed files with 302 additions and 50 deletions

View file

@ -1,6 +1,6 @@
{
"name": "paper-input",
"version": "1.1.11",
"version": "1.1.12",
"description": "Material design text fields",
"authors": [
"The Polymer Authors"
@ -48,14 +48,13 @@
"web-component-tester": "^4.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
"_release": "1.1.11",
"_release": "1.1.12",
"_resolution": {
"type": "version",
"tag": "v1.1.11",
"commit": "8cfe5c5bf8c2e40d243443d046a94b6fe371983c"
"tag": "v1.1.12",
"commit": "5dd3174ecee88ea280e960c6b6fbd04ce5c3da0e"
},
"_source": "git://github.com/PolymerElements/paper-input.git",
"_target": "^1.1.11",
"_originalSource": "PolymerElements/paper-input",
"_direct": true
"_originalSource": "PolymerElements/paper-input"
}

View file

@ -10,7 +10,7 @@ env:
- secure: nh65tvhnhOrK05qKvDJKMV7Jm9yiCoG1wFkP3ZnqOHix9Ny+KmcTa41Bl6NXQdvYaMTFtzS7lMZX5cqIziyKyGWHVN30LzGMHJNz12fhcMi3nJ84trhQGcu/9qR9yDv16q9ouGlcz1VxnDOHaRAHnIKjLIbhN3aJtMtZBbnWihA=
node_js: stable
addons:
firefox: latest
firefox: '46.0'
apt:
sources:
- google-chrome

View file

@ -1,4 +1,3 @@
<!--
This file is autogenerated based on
https://github.com/PolymerElements/ContributionGuide/blob/master/CONTRIBUTING.md
@ -11,6 +10,7 @@ specific element:
jsbin=https://jsbin.com/cagaye/edit?html,output
-->
# Polymer Elements
## Guide for Contributors

View file

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

View file

@ -20,6 +20,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
display: inline-block;
}
:host([hidden]) {
display: none !important;
}
input[is="iron-input"] {
font: inherit;
outline: none;

View file

@ -446,13 +446,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
* Forward focus to inputElement. Overriden from IronControlState.
*/
_focusBlurHandler: function(event) {
if (this._shiftTabPressed)
return;
Polymer.IronControlState._focusBlurHandler.call(this, event);
// Forward the focus to the nested input.
if (this.focused)
if (this.focused && !this._shiftTabPressed)
this._focusableElement.focus();
},

View file

@ -41,6 +41,10 @@ Custom property | Description | Default
@apply(--paper-input-char-counter);
}
:host([hidden]) {
display: none !important;
}
:host-context([dir="rtl"]) {
float: left;
}

View file

@ -121,6 +121,10 @@ This element is `display:block` by default, but you can set the `inline` attribu
@apply(--paper-input-container-disabled);
}
:host([hidden]) {
display: none !important;
}
.floated-label-placeholder {
@apply(--paper-font-caption);
}
@ -310,7 +314,7 @@ This element is `display:block` by default, but you can set the `inline` attribu
</style>
<template is="dom-if" if="[[!noLabelFloat]]">
<div class="floated-label-placeholder">&nbsp;</div>
<div class="floated-label-placeholder" aria-hidden="true">&nbsp;</div>
</template>
<div class$="[[_computeInputContentClass(noLabelFloat,alwaysFloatLabel,focused,invalid,_inputHasContent)]]">

View file

@ -74,6 +74,10 @@ style this element.
display: block;
}
:host([hidden]) {
display: none !important;
}
input::-webkit-input-placeholder {
color: var(--paper-input-container-color, --secondary-text-color);
}
@ -95,7 +99,7 @@ style this element.
<content select="[prefix]"></content>
<label hidden$="[[!label]]">[[label]]</label>
<label hidden$="[[!label]]" aria-hidden="true">[[label]]</label>
<input is="iron-input" id="input"
aria-labelledby$="[[_ariaLabelledBy]]"

View file

@ -39,11 +39,15 @@ style this element.
:host {
display: block;
}
:host([hidden]) {
display: none !important;
}
</style>
<paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]">
<label hidden$="[[!label]]">[[label]]</label>
<label hidden$="[[!label]]" aria-hidden="true">[[label]]</label>
<iron-autogrow-textarea id="input" class="paper-input-input"
bind-value="{{value}}"

View file

@ -251,6 +251,16 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
MockInteractions.blur(input.inputElement);
assert(!input.focused, 'input is blurred');
});
test('focusing then bluring with shift-tab removes the focused attribute correctly', function() {
MockInteractions.focus(input);
assert(input.focused, 'input is focused');
// Fake a shift-tab induced blur by forcing the flag.
input._shiftTabPressed = true;
MockInteractions.blur(input.inputElement);
assert(!input.focused, 'input is blurred');
});
});
suite('focused styling (integration test)', function() {