Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
text-wrap the placeholder for multi-line text inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
NealJMD committed Dec 2, 2016
1 parent 7de4857 commit 4437ee4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/assets/stylesheets/member-facing/form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,15 @@ label.checkbox-label {
-webkit-user-select: none;
font-size: 18px;
line-height: 28px;
white-space: nowrap;
max-width: calc(100% - 50px);
overflow: hidden;
white-space: nowrap;
&--multiline {
white-space: normal;
}
&--active {
color: $teal;
white-space: nowrap;
}
&--full {
color: rgba(black, 0.6);
Expand Down
2 changes: 1 addition & 1 deletion app/liquid/views/partials/_form.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<input type="hidden" name="{{field.name}}" class="form__content" id="" placeholder="{{ field.label }}" value="{{ field.default_value }}" />
{% when 'paragraph' %}
<div class="sweet-placeholder">
<label class="sweet-placeholder__label">{{ field.label }}</label>
<label class="sweet-placeholder__label sweet-placeholder__label--multiline">{{ field.label }}</label>
<textarea name="{{ field.name }}" class="form__content sweet-placeholder__field" id="" maxlength="9999">{{ field.default_value }}</textarea>
</div>
{% when 'email' %}
Expand Down

0 comments on commit 4437ee4

Please sign in to comment.