update input

This commit is contained in:
Luke Pulverenti 2016-05-29 15:50:33 -04:00
parent ae55e83e30
commit 26c5493ff7
2 changed files with 1 additions and 4 deletions

View File

@ -22,7 +22,6 @@
label.innerHTML = this.getAttribute('label') || ''; label.innerHTML = this.getAttribute('label') || '';
label.classList.add('inputLabel'); label.classList.add('inputLabel');
label.classList.add('inputLabelUnfocused');
label.htmlFor = this.id; label.htmlFor = this.id;
parentNode.insertBefore(label, this); parentNode.insertBefore(label, this);
@ -41,10 +40,8 @@
this.addEventListener('focus', function () { this.addEventListener('focus', function () {
onChange.call(this); onChange.call(this);
label.classList.add('inputLabelFocused'); label.classList.add('inputLabelFocused');
label.classList.remove('inputLabelUnfocused');
}); });
this.addEventListener('blur', function () { this.addEventListener('blur', function () {
label.classList.add('inputLabelUnfocused');
label.classList.remove('inputLabelFocused'); label.classList.remove('inputLabelFocused');
}); });

View File

@ -436,7 +436,7 @@ paper-input label, paper-textarea label {
color: #ccc; color: #ccc;
} }
.ui-body-b .selectLabelUnfocused, .ui-body-b .inputLabelUnfocused { .ui-body-b .selectLabelUnfocused, .ui-body-b .inputLabel {
color: #ccc; color: #ccc;
} }