Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions paper-input-container.html
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@
@apply(--paper-input-container-label-floating);
}

.input-content.label-is-floating ::content label .label-required,
.input-content.label-is-floating ::content .paper-input-label .label-required{
color: var(--error-color);
}

:host-context([dir="rtl"]) .input-content.label-is-floating ::content label,
:host-context([dir="rtl"]) .input-content.label-is-floating ::content .paper-input-label {
/* TODO(noms): Figure out why leaving the width at 133% before the animation
Expand Down
5 changes: 4 additions & 1 deletion paper-input.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@

<content select="[prefix]"></content>

<label hidden$="[[!label]]">[[label]]</label>
<label hidden$="[[!label]]">
[[label]]
<span class="label-required" hidden$="[[!required]]">*</span>
</label>

<input is="iron-input" id="input"
aria-labelledby$="[[_ariaLabelledBy]]"
Expand Down
5 changes: 4 additions & 1 deletion paper-textarea.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@

<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]]">
[[label]]
<span class="label-required" hidden$="[[!required]]">*</span>
</label>

<iron-autogrow-textarea id="input" class="paper-input-input"
bind-value="{{value}}"
Expand Down