Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(textarea): allow multi-row textarea #16

Merged
merged 4 commits into from
Apr 27, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/components/text-field.md
Original file line number Diff line number Diff line change
@@ -19,6 +19,13 @@ title: Text Field
>
</component>

<component
name="Text area (with rows)"
i8ramin marked this conversation as resolved.
Show resolved Hide resolved
component="text-area"
variation="text-area-multi-row"
>
</component>

<component
name="Text field with hints"
component="text-field"
12 changes: 12 additions & 0 deletions docs/html/text-area/text-area-multi-row.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<div class="ray-text-area">
<textarea
rows="4"
class="ray-text-area__input"
id="notes"
type="email"
placeholder="adding `rows` overrides default height"
></textarea>
<label class="ray-text-area__label" for="notes">
Long notes
</label>
</div>
6 changes: 6 additions & 0 deletions packages/core/src/components/text-field/_text-field.scss
Original file line number Diff line number Diff line change
@@ -169,4 +169,10 @@
}
}
}

textarea[rows].#{$ray-class-prefix}text-area {
i8ramin marked this conversation as resolved.
Show resolved Hide resolved
&__input {
height: auto !important;
i8ramin marked this conversation as resolved.
Show resolved Hide resolved
}
}
}