Skip to content

Commit 3305c3c

Browse files
committed
Merge pull request #18 from chrisbutler/master
adjust markup to align labels
2 parents bfc239e + b58f41a commit 3305c3c

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

lib/at_input.html

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,21 @@
33
</template>
44

55
<template name="atTextInput">
6-
<div class="at-input input-field">
7-
{{#if showLabels}}
8-
<label for="at-field-{{_id}}">
9-
{{displayName}} {{#unless required}}{{optionalText}}{{/unless}}
10-
</label>
11-
{{/if}}
12-
<input class="validate {{#if hasError}}invalid{{/if}} {{#if hasSuccess}}valid{{/if}}" type="{{type}}" id="at-field-{{_id}}" name="at-field-{{_id}}" placeholder="{{#unless showLabels}} {{placeholder}} {{/unless}}" autocapitalize="none" autocorrect="off">
13-
{{#if hasIcon}}
14-
<span class="{{iconClass}}"></span>
15-
{{/if}}
16-
{{#if hasError}}
17-
<span class='red-text'>{{errorText}}</span>
18-
{{/if}}
6+
<div class="row">
7+
<div class="at-input input-field col s12">
8+
{{#if showLabels}}
9+
<label for="at-field-{{_id}}">
10+
{{displayName}} {{#unless required}}{{optionalText}}{{/unless}}
11+
</label>
12+
{{/if}}
13+
<input class="validate {{#if hasError}}invalid{{/if}} {{#if hasSuccess}}valid{{/if}}" type="{{type}}" id="at-field-{{_id}}" name="at-field-{{_id}}" placeholder="{{#unless showLabels}} {{placeholder}} {{/unless}}" autocapitalize="none" autocorrect="off">
14+
{{#if hasIcon}}
15+
<span class="{{iconClass}}"></span>
16+
{{/if}}
17+
{{#if hasError}}
18+
<span class='red-text'>{{errorText}}</span>
19+
{{/if}}
20+
</div>
1921
</div>
2022
</template>
2123

0 commit comments

Comments
 (0)