Skip to content

Commit

Permalink
Merge pull request #398 from coreyfarrell/fix-hidden
Browse files Browse the repository at this point in the history
Ensure hidden attribute works.
  • Loading branch information
notwaldorf authored Jun 23, 2016
2 parents 722144b + d8f72f3 commit afd4778
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions demo/ssn-input.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
display: inline-block;
}

:host([hidden]) {
display: none !important;
}

input[is="iron-input"] {
font: inherit;
outline: none;
Expand Down
4 changes: 4 additions & 0 deletions paper-input-char-counter.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
@apply(--paper-input-char-counter);
}

:host([hidden]) {
display: none !important;
}

:host-context([dir="rtl"]) {
float: left;
}
Expand Down
4 changes: 4 additions & 0 deletions paper-input-container.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@
@apply(--paper-input-container-disabled);
}

:host([hidden]) {
display: none !important;
}

.floated-label-placeholder {
@apply(--paper-font-caption);
}
Expand Down
4 changes: 4 additions & 0 deletions paper-input.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
display: block;
}

:host([hidden]) {
display: none !important;
}

input::-webkit-input-placeholder {
color: var(--paper-input-container-color, --secondary-text-color);
}
Expand Down
4 changes: 4 additions & 0 deletions paper-textarea.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
: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]]">
Expand Down

0 comments on commit afd4778

Please sign in to comment.