-
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.
Merge pull request #429 from buildit/develop
Release recent fix & dep updates
- Loading branch information
Showing
18 changed files
with
2,943 additions
and
2,127 deletions.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,6 +1,25 @@ | ||
label { | ||
display: block; | ||
|
||
> textarea { | ||
width: 100%; | ||
margin-top: $grav-sp-s; | ||
} | ||
} | ||
|
||
input:not([type=radio]):not([type=checkbox]) { | ||
width: 100%; | ||
max-width: 40ch; | ||
padding-right: $grav-sp-xs; | ||
padding-left: $grav-sp-xs; | ||
border: grav-px2rem(1) solid var(--grav-co-grp-b-neutral); | ||
background-color: var(--grav-co-grp-a-neutral); | ||
} | ||
|
||
textarea { | ||
display: block; | ||
padding-right: $grav-sp-xs; | ||
padding-left: $grav-sp-xs; | ||
border: grav-px2rem(1) solid var(--grav-co-grp-b-neutral); | ||
background-color: var(--grav-co-grp-a-neutral); | ||
} |
Oops, something went wrong.