Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit 3c81714

Browse files
author
Yvonne Yip
committed
adjust styles based on spec redlines
1 parent 2fa5e87 commit 3c81714

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

paper-input.css

+12-8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
outline: none;
44
text-align: inherit;
55
color: #757575;
6+
padding: 0.75em 0;
67
}
78

89
:host /deep/ input,
@@ -18,7 +19,7 @@
1819
padding: 0;
1920
/* Important to use margin here so the margin remains visible
2021
* when textarea scrolls internally. */
21-
margin: 0.5em 0;
22+
margin: 0.5em 0 0.25em;
2223
background-color: transparent;
2324
border: none;
2425
outline: none;
@@ -57,7 +58,7 @@ textarea {
5758
}
5859

5960
.mirror-text {
60-
padding: 0.5em 0;
61+
padding: 0.5em 0 0.25em;
6162
max-width: 100%;
6263
white-space: nowrap;
6364
}
@@ -68,7 +69,7 @@ textarea {
6869
}
6970

7071
.label {
71-
padding: 0.5em 0;
72+
padding: 0.5em 0 0.25em;
7273
background: transparent;
7374
pointer-events: none;
7475
}
@@ -105,15 +106,18 @@ textarea {
105106
}
106107

107108
.underline {
108-
height: 1px;
109-
background: #757575;
110-
border-bottom-color: #757575;
109+
height: 0px;
110+
overflow: visible;
111111
}
112112

113113
:host([disabled]) .underline {
114114
border-bottom: 1px dashed;
115-
height: 0px;
116-
background: transparent;
115+
}
116+
117+
.unfocused-underline {
118+
height: 1px;
119+
background: #757575;
120+
border-bottom-color: #757575;
117121
}
118122

119123
.focused-underline {

paper-input.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,11 @@
8787
</div>
8888

8989
<div id="underline" class="underline" relative>
90+
<div class="unfocused-underline" fit invisible?="{{disabled}}"></div>
9091
<div id="focusedUnderline" class="focused-underline" fit invisible?="{{!focused}}" animated?="{{underlineAnimated}}"></div>
9192
</div>
9293

93-
<div layout horizontal center invisible?="{{!invalid}}">
94+
<div layout horizontal center hidden?="{{!invalid}}">
9495
<div class="error-text" flex auto role="alert" aria-hidden="{{!invalid}}">{{error || validationMessage}}</div>
9596
<core-icon class="error-icon" icon="warning"></core-icon>
9697
</div>

0 commit comments

Comments
 (0)