Skip to content

Commit

Permalink
WIP Remove leading/trailing whitespace on helper text to align
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth G. Franqueiro committed Aug 24, 2018
1 parent ccb41d9 commit 7be735f
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions demos/text-field.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ <h2>Full Functionality JS Component (Floating Label, Validation)</h2>
<div class="mdc-line-ripple"></div>
</div>
<p id="my-text-field-helper-text" class="mdc-text-field-helper-text"
aria-hidden="true" style="visibility: hidden">
Helper Text
</p>
aria-hidden="true" style="visibility: hidden">Helper Text</p>
</section>
<div>
<input id="disable" type="checkbox">
Expand Down Expand Up @@ -137,9 +135,7 @@ <h2>Password field with validation</h2>
<div class="mdc-line-ripple"></div>
</div>
<p class="mdc-text-field-helper-text mdc-text-field-helper-text--persistent mdc-text-field-helper-text--validation-msg"
id="pw-validation-msg">
Must be at least 8 characters long
</p>
id="pw-validation-msg">Must be at least 8 characters long</p>
</section>

<section class="example">
Expand All @@ -158,9 +154,7 @@ <h2>Outlined Text Field</h2>
<div class="mdc-notched-outline__idle"></div>
</div>
<p class="mdc-text-field-helper-text mdc-text-field-helper-text--validation-msg"
id="name-validation-message">
Helper Text
</p>
id="name-validation-message">Helper Text</p>
</div>
<div>
<input id="outlined-disable" type="checkbox">
Expand Down Expand Up @@ -346,8 +340,7 @@ <h2>Custom error state behaviour - remove error state as soon as invalid input i
<div class="mdc-line-ripple"></div>
</div>
<p id="username-helper-text" class="mdc-text-field-helper-text mdc-text-field-helper-text--persistent mdc-text-field-helper-text--validation-msg" aria-hidden="true"
>Enter 10 digit phone number including area code
</p>
>Enter 10 digit phone number including area code</p>
</section>
</section>
</main>
Expand Down

0 comments on commit 7be735f

Please sign in to comment.