Skip to content

Commit 6547ca6

Browse files
committed
fix(input): Correct vertical alignment of inputs and their labels, closes #799
1 parent bf75187 commit 6547ca6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Diff for: scss/_form.scss

+8-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ textarea {
6868
font-size: 16px;
6969
}
7070

71-
&.item.active,
71+
&.item.active,
7272
.ionic-pseudo &.item:active {
7373
border-color: $item-default-border;
7474
background-color: transparent;
@@ -79,6 +79,10 @@ textarea {
7979
@include flex(1, 0, 220px);
8080
@include appearance(none);
8181
}
82+
83+
.icon {
84+
min-width: 14px;
85+
}
8286
}
8387

8488
.item-input-inset {
@@ -116,6 +120,7 @@ textarea {
116120
max-width: 200px;
117121
color: $input-label-color;
118122
font-weight: bold;
123+
font-size: $font-size-base;
119124
}
120125

121126
.placeholder-icon {
@@ -175,11 +180,12 @@ input[type="search"],
175180
input[type="tel"],
176181
input[type="color"] {
177182
display: block;
183+
padding-top: 2px;
178184
height: $line-height-computed + $font-size-base;
179185
color: $input-color;
180186
vertical-align: middle;
181187
font-size: $font-size-base;
182-
line-height: $line-height-computed;
188+
line-height: $font-size-base + 2;
183189
}
184190

185191
input,

0 commit comments

Comments
 (0)