-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(textarea): allow multi-row textarea (#16)
* feat(component): allow multi-row textarea when rows are provided to a textarea, the fixed height is removed and set to "auto" * fix: fix storybook and adjust scss * Update docs/components/text-field.md Co-Authored-By: i8ramin <49030+i8ramin@users.noreply.github.com> * Update packages/core/src/components/text-field/_text-field.scss Co-Authored-By: i8ramin <49030+i8ramin@users.noreply.github.com>
- Loading branch information
1 parent
1b6a799
commit 9cfbdbd
Showing
4 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,4 +169,11 @@ | |
} | ||
} | ||
} | ||
|
||
[rows].#{$ray-class-prefix}text-area { | ||
&__input { | ||
height: auto; // ie11 fallback | ||
height: unset; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters