-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(textarea): adds textarea styles
affects: @buildit/gravity-ui-nunjucks, @buildit/gravity-ui-web ISSUES CLOSED: #404
- Loading branch information
James Nash
committed
Apr 16, 2020
1 parent
3da72b6
commit dba6efa
Showing
7 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
Empty file.
3 changes: 2 additions & 1 deletion
3
...gravity-ui-nunjucks/src/components/01-atoms/07-forms/00-text-input/text-input.config.json
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"preview": "@form-input-preview", | ||
"context": { | ||
"type": "text" | ||
} | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...ages/gravity-ui-nunjucks/src/components/01-atoms/07-forms/02-textarea/README.md
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,5 @@ | ||
## Purpose | ||
|
||
A `textarea` is used to capture multiline text input from the user. | ||
|
||
If the input must be completed in order to process the form successfully then a `required` attribute can be added. This will prevent the form being submitted until the `textarea` has a value. |
6 changes: 6 additions & 0 deletions
6
...ges/gravity-ui-nunjucks/src/components/01-atoms/07-forms/02-textarea/textarea.config.json
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,6 @@ | ||
{ | ||
"preview": "@form-input-preview", | ||
"context": { | ||
"inputText": "Pedantic shitpost comment goes in here" | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
packages/gravity-ui-nunjucks/src/components/01-atoms/07-forms/02-textarea/textarea.njk
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 @@ | ||
<textarea>{{ inputText }}</textarea> |
File renamed without changes.
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