update input
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
label.innerHTML = this.getAttribute('label') || '';
|
||||
label.classList.add('inputLabel');
|
||||
|
||||
label.classList.add('inputLabelUnfocused');
|
||||
label.htmlFor = this.id;
|
||||
parentNode.insertBefore(label, this);
|
||||
|
||||
@@ -41,10 +40,8 @@
|
||||
this.addEventListener('focus', function () {
|
||||
onChange.call(this);
|
||||
label.classList.add('inputLabelFocused');
|
||||
label.classList.remove('inputLabelUnfocused');
|
||||
});
|
||||
this.addEventListener('blur', function () {
|
||||
label.classList.add('inputLabelUnfocused');
|
||||
label.classList.remove('inputLabelFocused');
|
||||
});
|
||||
|
||||
|
||||
+1
-1
@@ -436,7 +436,7 @@ paper-input label, paper-textarea label {
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
.ui-body-b .selectLabelUnfocused, .ui-body-b .inputLabelUnfocused {
|
||||
.ui-body-b .selectLabelUnfocused, .ui-body-b .inputLabel {
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user